Functions related with fits files
Using the CRVAL1 and CDELT1 keywords in header determine the index of wavelength
Parameters: | header : dictionary like
wavelength : float
|
---|---|
Returns: | int or None
|
Examples
>>> wavelength_to_index({'CRVAL1': 3500, 'CDELT1': 2}, 4000)
250