esbo_etc.lib package¶
Submodules¶
esbo_etc.lib.cache module¶
esbo_etc.lib.helpers module¶
-
esbo_etc.lib.helpers.
isLambda
(obj: object)[source]¶ Check if a object is of type lambda
- Parameters
obj (object) – The object to check.
- Returns
res (bool) – Result of the check
-
esbo_etc.lib.helpers.
rasterizeCircle
(grid: numpy.ndarray, radius: float, xc: float, yc: float)[source]¶ Map a circle on a rectangular grid.
- Parameters
grid (ndarray) – The grid to map the circle onto.
radius (float) – Radius of the circle to be mapped.
xc (float) – X-index of the circle’s center point. The origin of the coordinate system is in the top left corner.
yc (float) – Y-index of the circle’s center point. The origin of the coordinate system is in the top left corner.
- Returns
grid (ndarray) – The grid with the circle mapped onto. Each point contained within the circle is marked as 1.
-
esbo_etc.lib.helpers.
readCSV
(file: str, units: list = None, format_: str = None) → astropy.table.table.Table[source]¶ Read a CSV file and parse the units in the header
- Parameters
file (str) – The path to the file to read.
units (list) – A list of the default units for the columns.
format (str) – The format to be used for reading (see also astropy table formats).
- Returns
data (Table) – The read table as astropy Table object.
esbo_etc.lib.logger module¶
esbo_etc.lib.output module¶
-
esbo_etc.lib.output.
printExposureTime
(exp_time: astropy.units.quantity.Quantity, snr: astropy.units.quantity.Quantity)[source]¶ Print the results of the exposure time calculation.
- Parameters
exp_time (Quantity) – The corresponding exposure time for the SNRs.
snr (Quantity) – The SNRs for which the exposure time was calculated.
-
esbo_etc.lib.output.
printSNR
(exp_time: astropy.units.quantity.Quantity, snr: astropy.units.quantity.Quantity)[source]¶ Print the results of the SNR calculation.
- Parameters
exp_time (Quantity) – The exposure times for which the SNR was calculated.
snr (Quantity) – The corresponding SNR for the exposure times.
-
esbo_etc.lib.output.
printSensitivity
(exp_time: astropy.units.quantity.Quantity, snr: astropy.units.quantity.Quantity, sensitivity: astropy.units.quantity.Quantity)[source]¶ Print the results of the sensitivity calculation.
- Parameters
exp_time (Quantity) – The exposure times for which the sensitivity was calculated.
snr (Quantity) – The SNRs for which the sensitivity was calculated.
sensitivity (Quantity) – The corresponding sensitivity for the exposure times and SNRs.