Level_0¶
-
class
esis.data.level_0.
Level_0
(intensity=None, intensity_uncertainty=None, wcs=None, time=None, time_index=None, channel=None, exposure_length=None, cam_sn=None, global_index=None, requested_exposure_time=None, run_mode=None, status=None, fpga_temp=None, fpga_vccint_voltage=None, fpga_vccaux_voltage=None, fpga_vccbram_voltage=None, adc_temp_1=None, adc_temp_2=None, adc_temp_3=None, adc_temp_4=None, detector=None, caching=False, num_dark_safety_frames=1, num_ignored_bias_columns=20)¶ Bases:
kgpy.observatories.Obs
-
__init__
(intensity=None, intensity_uncertainty=None, wcs=None, time=None, time_index=None, channel=None, exposure_length=None, cam_sn=None, global_index=None, requested_exposure_time=None, run_mode=None, status=None, fpga_temp=None, fpga_vccint_voltage=None, fpga_vccaux_voltage=None, fpga_vccbram_voltage=None, adc_temp_1=None, adc_temp_2=None, adc_temp_3=None, adc_temp_4=None, detector=None, caching=False, num_dark_safety_frames=1, num_ignored_bias_columns=20)¶ 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]) –
cam_sn (Optional[numpy.ndarray]) –
global_index (Optional[numpy.ndarray]) –
requested_exposure_time (Optional[astropy.units.Quantity]) –
run_mode (Optional[numpy.ndarray]) –
status (Optional[numpy.ndarray]) –
fpga_temp (Optional[astropy.units.Quantity]) –
fpga_vccint_voltage (Optional[astropy.units.Quantity]) –
fpga_vccaux_voltage (Optional[astropy.units.Quantity]) –
fpga_vccbram_voltage (Optional[astropy.units.Quantity]) –
adc_temp_1 (Optional[astropy.units.Quantity]) –
adc_temp_2 (Optional[astropy.units.Quantity]) –
adc_temp_3 (Optional[astropy.units.Quantity]) –
adc_temp_4 (Optional[astropy.units.Quantity]) –
detector (Optional[esis.optics.detector.Detector]) –
caching (bool) –
num_dark_safety_frames (int) –
num_ignored_bias_columns (int) –
- Return type
Attributes
- rtype
- rtype
- rtype
- rtype
- rtype
returns: :rtype: Bias subtracted data
- rtype
- rtype
- rtype
- rtype
- rtype
- rtype
typing.Tuple
[int
, …]
- rtype
- rtype
- rtype
- rtype
- rtype
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, …])blink_intensity_nobias_nodark
([time_index, …])from_directory
(directory, detector[, …])plot_adc_temperature
([ax])- rtype
plot_bias
([ax])- rtype
plot_channel
(image[, image_name, ax, …])- rtype
plot_channel_from_data
(data[, ax, …])- rtype
plot_dark
([axs])plot_exposure_length
([ax])- rtype
plot_exposure_stats_vs_index
([axs])plot_fpga_stats_vs_index
([axs])plot_fpga_temp
([ax])- rtype
plot_fpga_vccaux
([ax])- rtype
plot_fpga_vccbram
([ax])- rtype
plot_fpga_vccint
([ax])- rtype
plot_intensity_channel
([ax, time_index, …])- rtype
- 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
update
()- rtype
zeros
(shape)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) –
-
blink_intensity_nobias_nodark
(time_index=0, channel_index=0, ax=None, thresh_min=<Quantity 0.01 %>, thresh_max=<Quantity 99.9 %>, norm_gamma=1, frame_interval=<Quantity 1. s>)¶ - Parameters
time_index (int) –
channel_index (int) –
ax (Optional[matplotlib.axes.Axes]) –
thresh_min (astropy.units.Quantity) –
thresh_max (astropy.units.Quantity) –
norm_gamma (float) –
frame_interval (astropy.units.Quantity) –
-
classmethod
from_directory
(directory, detector, caching=False, num_dark_safety_frames=1)¶ - Return type
- Parameters
directory (pathlib.Path) –
detector (esis.optics.detector.Detector) –
caching (bool) –
num_dark_safety_frames (int) –
-
plot_adc_temperature
(ax=None)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
-
plot_bias
(ax=None)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
-
plot_bias_subtraction_vs_index
(axs=None)¶ - Return type
- Parameters
axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –
-
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_dark
(axs=None)¶ - Return type
- Parameters
axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –
-
plot_exposure_length
(ax=None)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
-
plot_exposure_stats_vs_index
(axs=None)¶ - Return type
- Parameters
axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –
-
plot_fpga_stats_vs_index
(axs=None)¶ - Return type
- Parameters
axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –
-
plot_fpga_temp
(ax=None)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
-
plot_fpga_vccaux
(ax=None)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
-
plot_fpga_vccbram
(ax=None)¶ - Return type
- Parameters
ax (Optional[matplotlib.axes.Axes]) –
-
plot_fpga_vccint
(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_nobias_mean
(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) –
-
update
()¶ - Return type
-
adc_temp_1
: Optional[astropy.units.Quantity] = None¶
-
adc_temp_2
: Optional[astropy.units.Quantity] = None¶
-
adc_temp_3
: Optional[astropy.units.Quantity] = None¶
-
adc_temp_4
: Optional[astropy.units.Quantity] = None¶
-
axis
: ClassVar[kgpy.observatories.ObsAxis] = <kgpy.observatories.ObsAxis object>¶
-
property
bias
¶ - Return type
-
cam_sn
: Optional[numpy.ndarray] = None¶
-
channel
: Optional[astropy.units.Quantity] = None¶
-
property
channel_labels
¶ - Return type
-
property
channel_signal
¶ - Return type
-
property
dark_nobias
¶ - Return type
-
detector
: Optional[esis.optics.detector.Detector] = None¶
-
exposure_length
: Optional[astropy.units.Quantity] = None¶
-
fpga_temp
: Optional[astropy.units.Quantity] = None¶
-
fpga_vccaux_voltage
: Optional[astropy.units.Quantity] = None¶
-
fpga_vccbram_voltage
: Optional[astropy.units.Quantity] = None¶
-
fpga_vccint_voltage
: Optional[astropy.units.Quantity] = None¶
-
global_index
: Optional[numpy.ndarray] = None¶
-
intensity
: Optional[astropy.units.Quantity] = None¶
-
property
intensity_derivative
¶ - Return type
-
property
intensity_nobias
¶ returns: :rtype: Bias subtracted data
-
property
intensity_nobias_nodark
¶ - Return type
-
property
intensity_nobias_nodark_active
¶
-
property
intensity_signal
¶ - Return type
-
intensity_uncertainty
: Optional[astropy.units.Quantity] = None¶
-
requested_exposure_time
: Optional[astropy.units.Quantity] = None¶
-
property
requested_exposure_time_signal
¶ - Return type
-
run_mode
: Optional[numpy.ndarray] = None¶
-
property
shape
¶ - Return type
typing.Tuple
[int
, …]
-
status
: Optional[numpy.ndarray] = None¶
-
time
: Optional[astropy.time.Time] = None¶
-
time_index
: Optional[numpy.ndarray] = None¶
-
property
time_index_signal
¶ - Return type
-
property
time_signal
¶ - Return type
-
wcs
: Optional[numpy.ndarray] = None¶
-