nicer.eng_plots
The “engineering” quick-look pages made by nicerql.py.
Functions
|
Make the engineering quick-look figure. |
|
Make a figure with the light curve of each detector. |
|
Make a figure with the energy spectrum of each detector. |
- nicer.eng_plots.eng_plots(etable, args, mktable, filttable, gtitable)[source]
Make the engineering quick-look figure.
The figure has the event counts per detector (as a bar chart and as a focal-plane image), the deadtime histogram, the undershoot reset rate per detector, and the spectrum and light curve of the detector with the most events.
- Parameters:
etable (astropy.table.Table) -- Event table, used for the exposure and figure title.
args (argparse.Namespace) -- Options from
nicerql.py.mktable (astropy.table.Table or None) -- Filter (
.mkf) table, used for the reset rates.filttable (astropy.table.Table) -- Filtered event table to plot.
gtitable (astropy.table.Table) -- GTI table with
START,STOP,DURATIONandCUMTIMEcolumns.
- Returns:
matplotlib.figure.Figure
- nicer.eng_plots.plot_all_spectra(etable, args, filttable, gtitable)[source]
Make a figure with the energy spectrum of each detector.
- Parameters:
etable (astropy.table.Table) -- Event table, used for the figure title.
args (argparse.Namespace) -- Options from
nicerql.py.filttable (astropy.table.Table) -- Filtered event table to plot.
gtitable (astropy.table.Table) -- GTI table with
START,STOP,DURATIONandCUMTIMEcolumns.
- Returns:
matplotlib.figure.Figure
- nicer.eng_plots.plot_all_lc(etable, args, filttable, gtitable)[source]
Make a figure with the light curve of each detector.
- Parameters:
etable (astropy.table.Table) -- Event table, used for the figure title.
args (argparse.Namespace) -- Options from
nicerql.py.filttable (astropy.table.Table) -- Filtered event table to plot.
gtitable (astropy.table.Table) -- GTI table with
START,STOP,DURATIONandCUMTIMEcolumns.
- Returns:
matplotlib.figure.Figure