surveys

Data class for survey-specific configuration parameters.

Module Contents

Classes

Survey

Holder for survey-specific information.

class Survey[source]

Holder for survey-specific information.

name: str = ''[source]
priors: superphot_plus.surveys.fitting_priors.MultibandPriors[source]
wavelengths: Dict[str, float][source]
__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

write_to_file(file: str)[source]

Write per-band curve priors to a yaml file.

classmethod from_file(file: str) typing_extensions.Self[source]

Read per-band curve priors from a yaml file.

classmethod ZTF() typing_extensions.Self[source]

Get ZTF priors and wavelengths.

Returns:

Survey object representing the Zwicky Transient Facility (ZTF).

Return type:

Survey

classmethod LSST() typing_extensions.Self[source]

Get LSST priors and wavelengths.

Returns:

Survey object representing the Rubin Observatory’s LSST.

Return type:

Survey