exorad.utils.plotter module

class Plotter(input_table, channels=None, payload=None)[source]

Bases: Logger

Plotter class. It offers a fast and easy way to produce diagnostic plots on the produced data.

Parameters:
  • input_table (Qtable) – table where to grab data and wl grid to plot.

  • channels (dict) – dictionary describing the channels in the payload. Default is None

plot_bands(ax, scale='log', channel_edges=True)[source]

It plots the channels bands behind the indicated axes.

Parameters:

ax (matplotlib.axes) – axes where to plot the bands

Return type:

matplotlib.axes.axes

Note

The Class input_table input parameter is required for this method to work.

plot_efficiency(scale='log', channel_edges=True)[source]

It produces a figure with payload efficiency over wavelength. The quantities reported are quantum efficiency, transmission and the photon conversion efficiency (pce) computed as the product of the quantum efficiency and transmission.

Return type:

matplotlib.pyplot.figure

Note

The Class channels input parameter is required for this method to work.

plot_noise(ax, ylim=None, scale='log', channel_edges=True)[source]

It plots the noise components found in the input table in the indicated axes.

Parameters:
  • ax (matplotlib.axes) – axes where to plot the noises

  • ylim (float) – if present, it sets the axes y bottom lim. Default is None.

Return type:

matplotlib.axes.axes

Note

The Class input_table input parameter is required for this method to work.

plot_signal(ax, ylim=None, scale='log', channel_edges=True)[source]

It plots the signal components found in the input table in the indicated axes.

Parameters:
  • ax (matplotlib.axes) – axes where to plot the signals

  • ylim (float) – if present, it sets the axes y bottom lim. Default is None.

Return type:

matplotlib.axes.axes

Note

The Class input_table input parameter is required for this method to work.

plot_table(sig_ylim=None, noise_ylim=None, scale='log', channel_edges=True)[source]

It produces a figure with signal and noise for the input table.

Returns:

  • matplotlib.pyplot.figure

  • (matplotlib.axes.axes, matplotlib.axes.axes)

Note

The Class input_table input parameter is required for this method to work.

save_fig(name, efficiency=False)[source]

It saves the produced figure.

Parameters:
  • name (str) – figure name

  • efficiency (bool) – if True it wll save the efficiency plot instead of the table plot. Default is False.

main()[source]