pyhrs:docs

wavelength_calibrate_arc

pyhrs.wavelength_calibrate_arc(arc, order_frame, slines, sfluxes, first_order, hrs_model, ws_init, fit_ws, y0=50, wavelength_shift=None, xlimit=1.0, slimit=1.0, wlimit=0.5, min_order=54)[source] [edit on github]

Wavelength calibrate an arc spectrum from HRS

‘wavelength_calibrate_order’ will be applied to each order in ‘order_frame’a Once all orders have been processed, it will return an array where the wavelength is specified at each x- and y-position.

Parameters:

arc: ~ccdproc.CCDData

Arc frame to be calibrated

order_frame: ~ccdproc.CCDData

Frame containting the positions of each of the orders

slines: numpy.ndarray

wavelengths of known arc lines

sfluxes: numpy.ndarray

relative fluxes at those wavelengths

first_order: int

First order to be processed

hrs_model: ~HRSModel

A model for the spectrograph for the given arc

ws_init: ~astropy.modeling.model

A initial model decribe the trasnformation from x-position to wavelength

fit_ws: ~astropy.modeling.fitting

Method to fit the model

y0: int

First row in which to determine the solution

wavelength_shift: ~astropy.modeling.model or None

For the row given by y0, this is the correction needed to be applied to the model wavelengths to provide a closer match to the observed arc.

npoints: int

The maximum number of points to bright points to fit.

xlimit: float

Maximum shift in line centroid when fitting

slimit: float

Minimum scale for line when fitting

wlimit: float

Minimum separation in wavelength between peak and line