mirar.pipelines.wirc.generator package
Dynamically generation functions for WIRC pipeline
Submodules
mirar.pipelines.wirc.generator.calibration module
Module containing WIRC-specific generator functions to yield e.g catalog for astrometric calibrations
mirar.pipelines.wirc.generator.imsub module
Functions to filter and purify the source table and photometric catalogs
- mirar.pipelines.wirc.generator.imsub.wirc_source_table_filter_annotator(source_table: SourceBatch) SourceBatch[source]
Function to remove bad candidates with None in sigmapsf, magpsf, magap, sigmagap, and update the source table with the keys required for the WIRC database :param source_table: source table :return: updated source table
- mirar.pipelines.wirc.generator.imsub.wirc_zogy_catalogs_purifier(sci_catalog: ~astropy.table.table.Table, ref_catalog: ~astropy.table.table.Table) -> (<class 'astropy.table.table.Table'>, <class 'astropy.table.table.Table'>)[source]
Function to purify the photometric catalog :param sci_catalog: :param ref_catalog: :return: sci_catalog, ref_catalog
mirar.pipelines.wirc.generator.references module
Module for generating reference images for the WIRC pipeline
- mirar.pipelines.wirc.generator.references.wirc_reference_generator(image: Image)[source]
Gets a reference image generator for the wirc data
- Parameters:
image – Image
- Returns:
Reference image generator
- mirar.pipelines.wirc.generator.references.wirc_reference_image_resampler(**kwargs) Swarp[source]
Returns a SWarp resampler for WIRC
- mirar.pipelines.wirc.generator.references.wirc_reference_psfex(output_sub_dir: str, norm_fits: bool) PSFex[source]
Returns a PSFEx processor for WIRC
- mirar.pipelines.wirc.generator.references.wirc_reference_sextractor(output_sub_dir: str) Sextractor[source]
Returns a Sextractor processor for WIRC reference images
mirar.pipelines.wirc.generator.stacks module
Module to group images based on the target coordinates into planned stack groups
- mirar.pipelines.wirc.generator.stacks.label_stack_id(batch: ImageBatch) ImageBatch[source]
Label the stack id of the images in the batch :param batch: Original batch of images :return: Labeled batch of images
mirar.pipelines.wirc.generator.target module
Module to annotate target coordinates on images.
- mirar.pipelines.wirc.generator.target.annotate_target_coordinates(image_batch: ImageBatch) ImageBatch[source]
Function to annotate target coordinates on images. For WIRC, this should be the value of RA/DEC in the header of the first image.
- Parameters:
image_batch – ImageBatch object
- Returns:
ImageBatch object