exosim.plots.subExposuresPlotter#
Classes#
Sub-Exposures plotter. |
Module Contents#
- class SubExposuresPlotter(input)[source]#
Bases:
exosim.log.LoggerSub-Exposures plotter. This class handles the methods to plot all the sub-exposures produced by ExoSim.
Examples
The following example, given the test_file.h5 preoduced by Exosim, plots the sub-exposures stores the figures in the indicated folder.
>>> from exosim.plots import SubExposuresPlotter >>> subExposuresPlotter = SubExposuresPlotter(input='./test_se.h5') >>> subExposuresPlotter.plot('plots/')
- plot(out_dir)[source]#
It iterates over the channels and plot the sub-exposures.
- Parameters:
out_dir (str) – output directory
- plot_SubExposure(exposures, time_line, integration_times, i, ch, out_dir)[source]#
It plots the sub-exposures for a given channel.
- Parameters:
ndrs (np.ndarray) – ndrs array
time_line (u.Quantity) – temporal array
integration_times (u.Quantity) – array for the integration times
i (int) – index of ndr to plot
ch (str) – channel name
out_dir (str) – output directory name
exposures (numpy.ndarray) –
- Return type:
None
- load_ndrs(ch, f)[source]#
It loads the channel sub-exposures from the input file:
- Parameters:
- Returns:
np.ndarray – sub-exposures array
u.Quantity – temporal array
u.Quantity – array for the integration times
int – number of exposures per ramp
- Return type:
Tuple[numpy.ndarray, astropy.units.Quantity, astropy.units.Quantity, int]