exosim.plots.ndrsPlotter#
Classes#
Sub-Exposures plotter. |
Module Contents#
- class NDRsPlotter(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_ndr.h5') >>> subExposuresPlotter.plot('plots/')
- Parameters:
input (str) –
- plot(out_dir)[source]#
It iterates over the channels and plot the ndrs.
- Parameters:
out_dir (str) – output directory
- Return type:
None
- load_ndrs(ch, f)[source]#
It loads the channel NDRs from the input file:
- Parameters:
- Returns:
numpy.ndarray– NDRastropy.units.Quantity– time lineint – number of groups per ramp
- Return type:
Tuple[numpy.ndarray, astropy.units.Quantity, int]