disp2vel¶
- paintbox.disp2vel(wrange, velscale)[source] [edit on github]¶
Returns a log-rebinned wavelength dispersion with constant velocity.
This code is an adaptation of pPXF’s log_rebin routine, simplified to deal with the wavelength dispersion only.
- Parameters
- wrange: list, np.array or astropy.Quantity
Input wavelength dispersion range with two elements.
- velscale: float or astropy.Quantity
Desired output velocity scale. Units are assumed to be km/s unless specified as an astropy.Quantity.