surveys
Data class for survey-specific configuration parameters.
Module Contents
Classes
Holder for survey-specific information. |
- class Survey[source]
Holder for survey-specific information.
- __post_init__()[source]
Check that priors and wavelengths are defined for all filters.
Perform additional logic to coerce string dictionaries into the appropriate data type.
- get_ordered_wavelengths()[source]
Return wavelengths in order that matches priors’ filter order.
- Returns:
ordered_wvs – Bands’ wavelengths in order matching priors.
- Return type:
np.ndarray
- get_extinctions(ra, dec, mwebv=None)[source]
Get band extinctions at a specific coordinate.
- Parameters:
ra (float) – The right ascension of the object of interest, in degrees.
dec (float) – The declination of the object of interest, in degrees.
mwebv (float) – Milky Way extinction value. If given, use this directly.
- Returns:
ext_dict – Maps bands to extinction magnitudes.
- Return type:
dict
- classmethod from_file(file: str) typing_extensions.Self[source]
Read per-band curve priors from a yaml file.