Spectrograph
- class popurri.spectrograph.Spectrograph(inst, dirout='./', filprop='/home/docs/checkouts/readthedocs.org/user_builds/popurri/envs/latest/lib/python3.9/site-packages/popurri/./data/spectrograph/spectrograph_properties.csv', ordcut=True)
Bases:
objectSpectrograph class
- Attributes:
- inststr
Instrument id. TODO: list of available instruments
- filpropstr
File with spectrograph properties.
- ron:
Readout noise per detector, red to blue [e-]
Methods Summary
fig_ords([style, filout, sh, sv, figsize])plot_ords_line([ax, xunit, nrows, rowsep, ...])Plot orders
plot_ords_rectangle([ax, xunit, nrows, ...])Plot orders
Methods Documentation
- fig_ords(style='rectangle', filout=None, sh=False, sv=True, figsize=(16, 2), **kwargs)
- plot_ords_line(ax=None, xunit='nm', nrows=2, rowsep=0.2, olabel='ord_real', dyfrac=0.2, xlabel=None, ylabel='', title='', legendlabel=None, legend=False, cmap=None, color='k', va='bottom', ybase=0)
Plot orders
- Parameters:
- nrowsint
1: All orders in the same row 2: Alternate rows every each other order 3: Alternate rows every three orders and so on
- olabel‘ord_real’, or ‘ord_real_num’
‘ord_real’: Real order number ‘ord_real_num’: Real order number and order number from 0 to nord
- Returns:
- axmatplotlib.axes.Axes
The axes on which the plot is created.
- plot_ords_rectangle(ax=None, xunit='nm', nrows=2, olabel='ord_real', dyfrac=0.2, rowsep=0.2, xlabel=None, ylabel='', title='', legendlabel=None, legend=False, cmap=None, color='k', colorshading=True, va='bottom', ybase=0)
Plot orders
- Parameters:
- dyfracfloat
Rectangle height fraction
- rowsepfloat
Extra separation between rows
- nrowsint
1: All orders in the same row 2: Alternate rows every each other order 3: Alternate rows every three orders and so on
- olabel‘ord_real’, or ‘ord_real_num’
‘ord_real’: Real order number ‘ord_real_num’: Real order number and order number from 0 to nord
- Returns:
- axmatplotlib.axes.Axes
The axes on which the plot is created.
- print_properties_nice()