pyhrs:docs

xcross_fit

pyhrs.xcross_fit(warr, farr, sw_arr, sf_arr, dw=1.0, nw=100)[source] [edit on github]
Calculate a zeropoint shift between the observed arc
and the line list of values
Parameters:

warr: numpy.ndarray

Estimated wavelength for arc

farr: numpy.ndarray

Flux at each arc position

sw_arr: numpy.ndarray

Wavelength of known lines

sf_arr: numpy.ndarray

Flux of known lines

dw: float

Value to search over. The search will be done from -dw to +dw

nw: int

Number of steps in the search

Returns:

warr: numpy.ndarray

Wavelength after correcting for shift from fiducial values

Page Contents