exosim.plots.ndrsPlotter#

Classes#

NDRsPlotter

Sub-Exposures plotter.

Module Contents#

class NDRsPlotter(input)[source]#

Bases: exosim.log.Logger

Sub-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

plot_NDRs(ndrs, time_line, i, ch, out_dir)[source]#

It plots the ndrs for a given channel.

Parameters:
  • ndrs (np.ndarray) – ndrs array

  • time_line (u.Quantity) – temporal array

  • i (int) – index of ndr to plot

  • ch (str) – channel name

  • out_dir (str) – output directory name

Return type:

None

load_ndrs(ch, f)[source]#

It loads the channel NDRs from the input file:

Parameters:
Returns:

Return type:

Tuple[numpy.ndarray, astropy.units.Quantity, int]