mirar.pipelines.lmi.generator package
Module containing functions to generate astrometric/photometric calibration catalogs for LMI images
- mirar.pipelines.lmi.generator.lmi_astrometric_catalog_generator(_) GaiaVizier[source]
Returns an astrometric catalog for LMI
- Parameters:
_ – Image
- Returns:
Gaia catalog around image
- mirar.pipelines.lmi.generator.lmi_photometric_catalog_generator(image: Image) BaseCatalog[source]
Generate a photometric calibration catalog for LMI images
For u band: SDSS if possible, otherwise Skymapper, otherwise fail For g/r/i/z: use PS1
- Parameters:
image – Image
- Returns:
catalog at image position
- mirar.pipelines.lmi.generator.lmi_reference_image_generator(image: Image) BaseReferenceGenerator[source]
Get a reference image generator for a LMI image
For u band: SDSS if possible, otherwise fail For g/r/i/z: use PS1
- Parameters:
image – image
- Returns:
Reference image generator
- mirar.pipelines.lmi.generator.lmi_reference_image_resampler(**kwargs) Swarp[source]
Generates a resampler for reference images
- Parameters:
kwargs – kwargs
- Returns:
Swarp processor
- mirar.pipelines.lmi.generator.lmi_reference_psfex(output_sub_dir: str, norm_fits: bool) PSFex[source]
Generates a PSFex processor for reference images
- Parameters:
output_sub_dir – output sui directory
norm_fits – boolean
- Returns:
Sextractor processor
- mirar.pipelines.lmi.generator.lmi_reference_sextractor(output_sub_dir: str, gain: float | None = None) Sextractor[source]
Generates a sextractor processor for reference images
- Parameters:
output_sub_dir – output sui directory
gain – gain of image
- Returns:
Sextractor processor
- mirar.pipelines.lmi.generator.lmi_sdss_reference_cat_purifier(catalog, image: Image)[source]
Purify SDSS catalog :param catalog: :param image: :return:
- mirar.pipelines.lmi.generator.lmi_zogy_catalogs_purifier(sci_catalog, ref_catalog)[source]
Purify catalogs for ZOGY
Submodules
mirar.pipelines.lmi.generator.sources module
- mirar.pipelines.lmi.generator.sources.lmi_skyportal_formatter(source_table: SourceBatch) SourceBatch[source]
Function to add relevant fields for new sources
- Parameters:
source_table – Original source table
- Returns:
Updated source table
mirar.pipelines.lmi.generator.stacks module
Module to group images based on the target coordinates into planned stack groups
- mirar.pipelines.lmi.generator.stacks.label_stack_id(batch: ImageBatch) ImageBatch[source]
Label the stack id of the images in the batch
- Parameters:
batch – Original batch of images
- Returns:
Labeled batch of images
mirar.pipelines.lmi.generator.target module
Module to annotate target coordinates on images.
- mirar.pipelines.lmi.generator.target.annotate_target_coordinates(image_batch: ImageBatch) ImageBatch[source]
Function to annotate target coordinates on images. For LMI, this should be the value of RA/DEC in the header of the first image.
- Parameters:
image_batch – ImageBatch object
- Returns:
ImageBatch object