gavo.base.spectral module¶
Spectral-related functions.
- gavo.base.spectral.getFilterMap()[source]¶
returns a pair for filter_def, aliases mapping.
This parses from the built-in data/filters.txt; filter_def maps filter names to tuples of lower, central, long wavelength in metres. (we may add further fields later, so it’s safer to [:3] these results).
Aliases just maps common filter names to our canontical names for these filters.
- gavo.base.spectral.getSpecConverter(fromUnit, toUnit)[source]¶
Returns a function converting spectral values in fromUnit to toUnit.