HMI

class kgpy.observatories.sdo.hmi.HMI(intensity=None, intensity_uncertainty=None, wcs=None, time=None, time_index=None, channel=None, exposure_length=None)

Bases: Image

A class for downloading and storing a sequence of HMI images

Parameters
__init__(intensity=None, intensity_uncertainty=None, wcs=None, time=None, time_index=None, channel=None, exposure_length=None)
Parameters
Return type

None

Attributes

axis

Relationship between physical dimension and axis index.

channel

channel_labels

exposure_half_length

exposure_length

intensity

Intensity of each pixel in the data

intensity_uncertainty

num_channels

num_times

num_x

num_y

shape

time

time_exp_end

time_exp_start

time_index

wcs

Methods

__init__([intensity, intensity_uncertainty, ...])

add_index_axis_to_shared_time_axes(axs)

rtype

typing.Sequence[matplotlib.axes.Axes]

add_index_axis_to_time_axis(ax)

rtype

matplotlib.axes.Axes

animate(data[, time_slice, axs, thresh_min, ...])

rtype

matplotlib.animation.FuncAnimation

animate_channel(images, image_names[, ax, ...])

animate_intensity([axs, thresh_min, ...])

rtype

matplotlib.animation.FuncAnimation

animate_intensity_channel([ax, time_slice, ...])

rtype

matplotlib.animation.FuncAnimation

from_path_array(path_array)

rtype

kgpy.observatories.sdo.hmi.HMI

from_pickle([path])

from_time_range(time_start, time_end[, ...])

plot_channel(image[, image_name, ax, ...])

rtype

matplotlib.axes.Axes

plot_channel_from_data(data[, ax, ...])

rtype

matplotlib.axes.Axes

plot_exposure_length(ax)

rtype

typing.Tuple[matplotlib.axes.Axes, typing.List[matplotlib.lines.Line2D]]

plot_intensity_channel([ax, time_index, ...])

rtype

matplotlib.axes.Axes

plot_intensity_mean_vs_time(ax)

rtype

typing.Tuple[matplotlib.axes.Axes, typing.List[matplotlib.lines.Line2D]]

plot_intensity_time([axs, time_index, ...])

rtype

numpy.ndarray

plot_quantity_vs_index(ax, a[, t, a_name])

rtype

typing.Tuple[matplotlib.axes.Axes, typing.List[matplotlib.lines.Line2D]]

plot_time(images, image_names, axs[, ...])

rtype

numpy.ndarray

plot_time_from_data(data[, axs, time_index, ...])

rtype

numpy.ndarray

to_pickle(path)

zeros(shape)

rtype

kgpy.obs.Image

Inheritance Diagram

Inheritance diagram of kgpy.observatories.sdo.hmi.HMI

add_index_axis_to_shared_time_axes(axs)
Return type

typing.Sequence[matplotlib.axes.Axes]

Parameters

axs (Sequence[Axes]) –

add_index_axis_to_time_axis(ax)
Return type

matplotlib.axes.Axes

Parameters

ax (Axes) –

animate(data, time_slice=slice(None, None, None), axs=None, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>, norm_gamma=1, frame_interval=<Quantity 100. ms>)
Return type

matplotlib.animation.FuncAnimation

Parameters
animate_channel(images, image_names, ax=None, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>, norm_gamma=1, norm_vmin=None, norm_vmax=None, frame_interval=<Quantity 1. s>, colormap=None)
Parameters
animate_intensity(axs=None, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>, norm_gamma=1, frame_interval=<Quantity 100. ms>)
Return type

matplotlib.animation.FuncAnimation

Parameters
animate_intensity_channel(ax=None, time_slice=None, channel_index=0, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>, norm_gamma=1, norm_vmin=None, norm_vmax=None, frame_interval=<Quantity 100. ms>, colormap=None)
Return type

matplotlib.animation.FuncAnimation

Parameters
classmethod from_path_array(path_array)
Return type

kgpy.observatories.sdo.hmi.HMI

Parameters

path_array (ndarray) –

classmethod from_pickle(path=None)
Parameters

path (Optional[Path]) –

classmethod from_time_range(time_start, time_end, download_path=None, channels=None, user_email='jacobdparker@gmail.com')
Parameters
plot_channel(image, image_name='', ax=None, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>, colorbar_location='right', transpose=False)
Return type

matplotlib.axes.Axes

Parameters
plot_channel_from_data(data, ax=None, time_index=0, channel_index=0, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>)
Return type

matplotlib.axes.Axes

Parameters
plot_exposure_length(ax)
Return type

typing.Tuple[matplotlib.axes.Axes, typing.List[matplotlib.lines.Line2D]]

Parameters

ax (Axes) –

plot_intensity_channel(ax=None, time_index=0, channel_index=0, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>)
Return type

matplotlib.axes.Axes

Parameters
plot_intensity_mean_vs_time(ax)
Return type

typing.Tuple[matplotlib.axes.Axes, typing.List[matplotlib.lines.Line2D]]

Parameters

ax (Axes) –

plot_intensity_time(axs=None, time_index=0, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>)
Return type

numpy.ndarray

Parameters
plot_quantity_vs_index(ax, a, t=None, a_name='')
Return type

typing.Tuple[matplotlib.axes.Axes, typing.List[matplotlib.lines.Line2D]]

Parameters
plot_time(images, image_names, axs, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>)
Return type

numpy.ndarray

Parameters
plot_time_from_data(data, axs=None, time_index=0, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>)
Return type

numpy.ndarray

Parameters
to_pickle(path)
Parameters

path (Optional[Path]) –

classmethod zeros(shape)
Return type

kgpy.obs.Image

Parameters

shape (Sequence[int]) –

axis: typing.ClassVar[kgpy.obs.ImageAxis] = <kgpy.obs.ImageAxis object>

Relationship between physical dimension and axis index.

channel: typing.Optional[astropy.units.Quantity] = None
property channel_labels: List[str]
property exposure_half_length
exposure_length: typing.Optional[astropy.units.Quantity] = None
intensity: typing.Optional[astropy.units.Quantity] = None

Intensity of each pixel in the data

intensity_uncertainty: typing.Optional[astropy.units.Quantity] = None
property num_channels: int
property num_times: int
property num_x: int
property num_y: int
property shape: Tuple[int, ...]
time: typing.Optional[astropy.time.Time] = None
property time_exp_end: Time
property time_exp_start: Time
time_index: typing.Optional[numpy.ndarray] = None
wcs: typing.Optional[numpy.ndarray] = None