Level_1¶
-
class
esis.data.level_1.Level_1(intensity=None, intensity_uncertainty=None, wcs=None, time=None, time_index=None, channel=None, exposure_length=None, detector=None, sequence_metadata=None, analog_metadata=None)¶ Bases:
kgpy.observatories.Obs,kgpy.mixin.Pickleable-
__init__(intensity=None, intensity_uncertainty=None, wcs=None, time=None, time_index=None, channel=None, exposure_length=None, detector=None, sequence_metadata=None, analog_metadata=None)¶ Initialize self. See help(type(self)) for accurate signature.
- Parameters
intensity (Optional[astropy.units.Quantity]) –
intensity_uncertainty (Optional[astropy.units.Quantity]) –
wcs (Optional[numpy.ndarray]) –
time (Optional[astropy.time.Time]) –
time_index (Optional[numpy.ndarray]) –
channel (Optional[astropy.units.Quantity]) –
exposure_length (Optional[astropy.units.Quantity]) –
detector (Optional[esis.optics.detector.Detector]) –
sequence_metadata (numpy.ndarray) –
analog_metadata (numpy.ndarray) –
- Return type
Attributes
- rtype
- rtype
- rtype
- rtype
typing.Tuple[int, …]
Methods
__init__([intensity, intensity_uncertainty, …])Initialize self.
animate(data[, time_slice, axs, thresh_min, …])animate_channel(images, image_names[, ax, …])animate_intensity([axs, thresh_min, …])animate_intensity_channel([ax, time_slice, …])create_mask(sequence)- rtype
from_level_0(lev0[, despike])from_pickle([path])intensity_photons(wavelength)- rtype
plot_channel(image[, image_name, ax, …])- rtype
plot_channel_from_data(data[, ax, …])- rtype
plot_exposure_length([ax])- rtype
plot_intensity_channel([ax, time_index, …])- rtype
- rtype
plot_intensity_time([axs, time_index, …])- rtype
plot_quantity_vs_index(a[, a_name, ax, …])- type a
plot_time(images, image_names, axs[, …])- rtype
plot_time_from_data(data[, axs, time_index, …])- rtype
to_fits(path)to_pickle([path])zeros(shape)- rtype
Inheritance Diagram
-
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
- Parameters
data (astropy.units.Quantity) –
time_slice (slice) –
axs (Optional[numpy.ndarray]) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
norm_gamma (float) –
frame_interval (astropy.units.Quantity) –
-
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>)¶ - Parameters
images (astropy.units.Quantity) –
image_names (List[str]) –
ax (Optional[matplotlib.axes.Axes]) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
norm_gamma (float) –
norm_vmin (Optional[astropy.units.Quantity]) –
norm_vmax (Optional[astropy.units.Quantity]) –
frame_interval (astropy.units.Quantity) –
-
animate_intensity(axs=None, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>, norm_gamma=1, frame_interval=<Quantity 100. ms>)¶ - Return type
- Parameters
axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
norm_gamma (float) –
frame_interval (astropy.units.Quantity) –
-
animate_intensity_channel(ax=None, time_slice=None, channel_index=0, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>, norm_gamma=1, frame_interval=<Quantity 100. ms>)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
time_slice (Optional[slice]) –
channel_index (int) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
norm_gamma (float) –
frame_interval (astropy.units.Quantity) –
-
create_mask(sequence)¶
-
static
default_pickle_path()¶ - Return type
-
classmethod
from_level_0(lev0, despike=False)¶ - Return type
- Parameters
lev0 (esis.data.level_0.Level_0) –
despike (bool) –
-
classmethod
from_pickle(path=None)¶ - Return type
- Parameters
path (Optional[pathlib.Path]) –
-
intensity_photons(wavelength)¶ - Return type
- Parameters
wavelength (astropy.units.Quantity) –
-
plot_channel(image, image_name='', ax=None, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>, colorbar_location='right', transpose=False)¶ - Return type
- Parameters
image (astropy.units.Quantity) –
image_name (str) –
ax (Optional[matplotlib.axes.Axes]) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
colorbar_location (str) –
transpose (bool) –
-
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
- Parameters
data (astropy.units.Quantity) –
ax (Optional[matplotlib.axes.Axes]) –
time_index (int) –
channel_index (int) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
-
plot_exposure_length(ax=None)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
-
plot_intensity_channel(ax=None, time_index=0, channel_index=0, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
time_index (int) –
channel_index (int) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
-
plot_intensity_mean_vs_time(ax=None)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
-
plot_intensity_time(axs=None, time_index=0, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>)¶ - Return type
- Parameters
axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –
time_index (int) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
-
plot_quantity_vs_index(a, a_name='', ax=None, legend_ncol=1, drawstyle='steps')¶ - Parameters
a (
astropy.units.Quantity) –a_name (
str) –ax (
typing.Optional[matplotlib.axes.Axes]) –legend_ncol (
int) –drawstyle (
str) –
- Returns
- Return type
-
plot_time(images, image_names, axs, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>)¶ - Return type
- Parameters
images (astropy.units.Quantity) –
image_names (Sequence[str]) –
axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
-
plot_time_from_data(data, axs=None, time_index=0, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>)¶ - Return type
- Parameters
data (astropy.units.Quantity) –
axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –
time_index (int) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
-
to_fits(path)¶ - Parameters
path (pathlib.Path) –
-
to_pickle(path=None)¶ - Parameters
path (Optional[pathlib.Path]) –
-
analog_metadata: numpy.ndarray = None¶
-
axis: ClassVar[kgpy.observatories.ObsAxis] = <kgpy.observatories.ObsAxis object>¶
-
channel: Optional[astropy.units.Quantity] = None¶
-
property
channel_labels¶ - Return type
-
detector: Optional[esis.optics.detector.Detector] = None¶
-
exposure_length: Optional[astropy.units.Quantity] = None¶
-
intensity: Optional[astropy.units.Quantity] = None¶
-
intensity_uncertainty: Optional[astropy.units.Quantity] = None¶
-
sequence_metadata: numpy.ndarray = None¶
-
property
shape¶ - Return type
typing.Tuple[int, …]
-
time: Optional[astropy.time.Time] = None¶
-
time_index: Optional[numpy.ndarray] = None¶
-
wcs: Optional[numpy.ndarray] = None¶
-