autowisp.magnitude_fitting.util module

Class Inheritance Diagram

Inheritance diagram of count

Functions for formatting magnitude fitting inputs as needed.

autowisp.magnitude_fitting.util._init_magfit_sources(source_data)[source]

Return empty array properly formatted to hold the given sources.

autowisp.magnitude_fitting.util._parse_phot_column(colname)[source]

Return the magfit iteration of the given phot column (-1 if not phot).

autowisp.magnitude_fitting.util.format_master_catalog(cat_sources, source_id_parser=None)[source]

Return the catalogue info in the given file formatted for magfitting.

autowisp.magnitude_fitting.util.get_magfit_sources(data_reduction_file, magfit_iterations='all', **path_substitutions)[source]

Return the sources in the given DR file formatted for magfit.

autowisp.magnitude_fitting.util.get_master_photref(photref_fname)[source]

Read a FITS photometric reference created by MasterPhotrefCollector.

autowisp.magnitude_fitting.util.get_path_substitutions(configuration, sphotref_header)[source]

Return the path substitutions to find magfit datasets.

autowisp.magnitude_fitting.util.get_single_photref(data_reduction_file, **path_substitutions)[source]

Create a photometric reference out of the raw photometry in a DR file.

autowisp.magnitude_fitting.util.read_exclusions(exclusion_fname)[source]

Return the DR files an exclusion list names, as resolved paths.

Parameters:

exclusion_fname (str or None) – The exclusion list: one DR file per line, blank lines ignored. None excludes nothing.

Returns:

The os.path.realpath of each listed DR file, so that a file matches however its path is spelled.

Return type:

set