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
Return type

None

Attributes

adc_temp_1

adc_temp_2

adc_temp_3

adc_temp_4

axis

bias

rtype

astropy.units.Quantity

caching

cam_sn

channel

channel_labels

rtype

typing.List[str]

channel_signal

rtype

astropy.units.Quantity

dark_nobias

rtype

astropy.units.Quantity

detector

exposure_length

fpga_temp

fpga_vccaux_voltage

fpga_vccbram_voltage

fpga_vccint_voltage

global_index

intensity

intensity_derivative

rtype

astropy.units.Quantity

intensity_nobias

returns: :rtype: Bias subtracted data

intensity_nobias_nodark

rtype

astropy.units.Quantity

intensity_nobias_nodark_active

intensity_signal

rtype

astropy.units.Quantity

intensity_uncertainty

num_channels

rtype

int

num_dark_safety_frames

num_ignored_bias_columns

num_times

rtype

int

requested_exposure_time

requested_exposure_time_signal

rtype

astropy.units.Quantity

run_mode

shape

rtype

typing.Tuple[int, …]

signal_index_first

rtype

int

signal_index_last

rtype

int

signal_slice

rtype

slice

status

time

time_index

time_index_signal

rtype

astropy.units.Quantity

time_signal

rtype

astropy.time.Time

wcs

Methods

__init__([intensity, intensity_uncertainty, …])

Initialize self.

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

blink_intensity_nobias_nodark([time_index, …])

from_directory(directory, detector[, …])

rtype

esis.data.level_0.Level_0

plot_adc_temperature([ax])

rtype

matplotlib.axes.Axes

plot_bias([ax])

rtype

matplotlib.axes.Axes

plot_bias_subtraction_vs_index([axs])

rtype

typing.MutableSequence[matplotlib.axes.Axes]

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

rtype

matplotlib.axes.Axes

plot_channel_from_data(data[, ax, …])

rtype

matplotlib.axes.Axes

plot_dark([axs])

rtype

typing.MutableSequence[matplotlib.axes.Axes]

plot_exposure_length([ax])

rtype

matplotlib.axes.Axes

plot_exposure_stats_vs_index([axs])

rtype

typing.MutableSequence[matplotlib.axes.Axes]

plot_fpga_stats_vs_index([axs])

rtype

typing.MutableSequence[matplotlib.axes.Axes]

plot_fpga_temp([ax])

rtype

matplotlib.axes.Axes

plot_fpga_vccaux([ax])

rtype

matplotlib.axes.Axes

plot_fpga_vccbram([ax])

rtype

matplotlib.axes.Axes

plot_fpga_vccint([ax])

rtype

matplotlib.axes.Axes

plot_intensity_channel([ax, time_index, …])

rtype

matplotlib.axes.Axes

plot_intensity_mean_vs_time([ax])

rtype

matplotlib.axes.Axes

plot_intensity_nobias_mean([ax])

rtype

matplotlib.axes.Axes

plot_intensity_time([axs, time_index, …])

rtype

numpy.ndarray

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

type a

astropy.units.Quantity

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

rtype

numpy.ndarray

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

rtype

numpy.ndarray

update()

rtype

typing.NoReturn

zeros(shape)

rtype

esis.data.level_0.Level_0

Inheritance Diagram

Inheritance diagram of esis.data.level_0.Level_0

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>)
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, frame_interval=<Quantity 100. ms>)
Return type

matplotlib.animation.FuncAnimation

Parameters
Parameters
classmethod from_directory(directory, detector, caching=False, num_dark_safety_frames=1)
Return type

esis.data.level_0.Level_0

Parameters
plot_adc_temperature(ax=None)
Return type

matplotlib.axes.Axes

Parameters

ax (Optional[matplotlib.axes.Axes]) –

plot_bias(ax=None)
Return type

matplotlib.axes.Axes

Parameters

ax (Optional[matplotlib.axes.Axes]) –

plot_bias_subtraction_vs_index(axs=None)
Return type

typing.MutableSequence[matplotlib.axes.Axes]

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

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_dark(axs=None)
Return type

typing.MutableSequence[matplotlib.axes.Axes]

Parameters

axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –

plot_exposure_length(ax=None)
Return type

matplotlib.axes.Axes

Parameters

ax (Optional[matplotlib.axes.Axes]) –

plot_exposure_stats_vs_index(axs=None)
Return type

typing.MutableSequence[matplotlib.axes.Axes]

Parameters

axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –

plot_fpga_stats_vs_index(axs=None)
Return type

typing.MutableSequence[matplotlib.axes.Axes]

Parameters

axs (Optional[MutableSequence[matplotlib.axes.Axes]]) –

plot_fpga_temp(ax=None)
Return type

matplotlib.axes.Axes

Parameters

ax (Optional[matplotlib.axes.Axes]) –

plot_fpga_vccaux(ax=None)
Return type

matplotlib.axes.Axes

Parameters

ax (Optional[matplotlib.axes.Axes]) –

plot_fpga_vccbram(ax=None)
Return type

matplotlib.axes.Axes

Parameters

ax (Optional[matplotlib.axes.Axes]) –

plot_fpga_vccint(ax=None)
Return type

matplotlib.axes.Axes

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

matplotlib.axes.Axes

Parameters
plot_intensity_mean_vs_time(ax=None)
Return type

matplotlib.axes.Axes

Parameters

ax (Optional[matplotlib.axes.Axes]) –

plot_intensity_nobias_mean(ax=None)
Return type

matplotlib.axes.Axes

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

numpy.ndarray

Parameters
plot_quantity_vs_index(a, a_name='', ax=None, legend_ncol=1, drawstyle='steps')
Parameters
Returns

Return type

matplotlib.axes.Axes

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
update()
Return type

typing.NoReturn

classmethod zeros(shape)
Return type

esis.data.level_0.Level_0

Parameters

shape (Sequence[int]) –

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

astropy.units.Quantity

caching: bool = False
cam_sn: Optional[numpy.ndarray] = None
channel: Optional[astropy.units.Quantity] = None
property channel_labels
Return type

typing.List[str]

property channel_signal
Return type

astropy.units.Quantity

property dark_nobias
Return type

astropy.units.Quantity

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

astropy.units.Quantity

property intensity_nobias

returns: :rtype: Bias subtracted data

property intensity_nobias_nodark
Return type

astropy.units.Quantity

property intensity_nobias_nodark_active
property intensity_signal
Return type

astropy.units.Quantity

intensity_uncertainty: Optional[astropy.units.Quantity] = None
property num_channels
Return type

int

num_dark_safety_frames: int = 1
num_ignored_bias_columns: int = 20
property num_times
Return type

int

requested_exposure_time: Optional[astropy.units.Quantity] = None
property requested_exposure_time_signal
Return type

astropy.units.Quantity

run_mode: Optional[numpy.ndarray] = None
property shape
Return type

typing.Tuple[int, …]

property signal_index_first
Return type

int

property signal_index_last
Return type

int

property signal_slice
Return type

slice

status: Optional[numpy.ndarray] = None
time: Optional[astropy.time.Time] = None
time_index: Optional[numpy.ndarray] = None
property time_index_signal
Return type

astropy.units.Quantity

property time_signal
Return type

astropy.time.Time

wcs: Optional[numpy.ndarray] = None