mapwavelength¶
-
pydis.
mapwavelength
(trace, wavemap, mode='spline2d')[source]¶ Compute the wavelength along the center of the trace, to be run after the HeNeAr_fit routine.
- Parameters
- trace1-d array
The spatial positions (Y axis) corresponding to the center of the trace for every wavelength (X axis), as returned from ap_trace
- wavemapbivariate spline object or image-like wavelength map
The wavelength evaluated at every pixel, output from HeNeAr_fit Type depends on mode parameter.
- modestr, optional
Which mode was used to generate the 2D wavelength solution in HeNeAr_fit(), and specifically in lines_to_surface()? Options include: poly, spline, spline2d (Default is ‘spline2d’)
- Returns
- trace_wave1d array
The wavelength vector evaluated at each position along the trace