pyird.plot package
Submodules
pyird.plot.detector module
- pyird.plot.detector.corrected_detector(im, model_im, corrected_im, vmax=10.0, vmin=-15.0)
plot detector images
- Parameters:
im – raw image
model_im – model image
corrected_im – image after correction
vmin – color vmin
vmax – color vmax
- pyird.plot.detector.show_profile(xprofile_offset_subtracted, yprofile_offset_subtracted, xprofile_offset_subtracted_model, yprofile_offset_subtracted_model)
show detector profiles.
- Parameters:
xprofile_offset_subtracted
yprofile_offset_subtracted
xprofile_offset_subtracted_model
yprofile_offset_subtracted_model
pyird.plot.order module
- pyird.plot.order.plot_compare_used_thar(data1, wavsol1_2d, data2)
compare between the wav-channel list created in the before and after iteration
- Parameters:
data1 – ThAr data created before iteration
wavsol1_2d – fitted model (i.e., wavelength solution) created by using data1
data2 – ThAr data created after iteration
- pyird.plot.order.plot_crosssection(pixels, flux, peakind)
show an image of flux at any one row extracted on a 2D detector.
- Parameters:
pixels – detector pixels (column direction on detector)
flux – flux counts
peakind – indexes of detected peaks
- pyird.plot.order.plot_fitresult_thar(wavsol, data, norder, npix=2048)
show the reference ThAr pixels and fitted model and their residuals.
- Parameters:
wavsol – fitting model
data – the reference ThAr data
norder – number of the orders
npix – number of detector pixels in y direction
- pyird.plot.order.plot_tracelines(x, y, npix=2048)
show traced apertures.
- Parameters:
x – position of traced pixels in row direction
y – position of traced pixels in column direction
pyird.plot.showmask module
- pyird.plot.showmask.show_hotpix(obj, im)
show hotpixels.
- Parameters:
obj – sep object
im – image or mask
- pyird.plot.showmask.show_maskedpix(im, mask, vmin=-10, vmax=50)
show masked pixels.
- Parameters:
im – image
mask – mask
vmin – min value of imshow
vmax – max value of imshow
pyird.plot.showspec module
- pyird.plot.showspec.show_wavcal_spectrum(df_wspec, title=None, **kwargs)
show the wavelength calibrated spectrum.
- Parameters:
df_wspec – pandas.DataFrame that contains wavelengths and flux
kwargs – keys for plot