mirar.pipelines.wasp.generator package
Module containing functions to generate astrometric/photometric calibration catalogs for WASP images
- mirar.pipelines.wasp.generator.wasp_astrometric_catalog_generator(image: Image) Gaia2Mass[source]
Returns an astrometric catalog for summer, which is just a Gaia/2MASS one
- Parameters:
image – image to generate a catalog for
- Returns:
Gaia/2MASS catalog around image
- mirar.pipelines.wasp.generator.wasp_photometric_catalog_generator(image: Image) BaseCatalog[source]
Generate a photometric calibration catalog for SUMMER 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.wasp.generator.wasp_reference_image_generator(image: Image) BaseReferenceGenerator[source]
Get a reference image generator for a WASP 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.wasp.generator.wasp_reference_image_resampler(**kwargs) Swarp[source]
Generates a resampler for reference images
- Parameters:
kwargs – kwargs
- Returns:
Swarp processor
- mirar.pipelines.wasp.generator.wasp_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.wasp.generator.wasp_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.wasp.generator.wasp_sdss_reference_cat_purifier(catalog, image: Image)[source]
Purify SDSS catalog :param catalog: :param image: :return:
- mirar.pipelines.wasp.generator.wasp_zogy_catalogs_purifier(sci_catalog, ref_catalog)[source]
Purify catalogs for ZOGY
Submodules
mirar.pipelines.wasp.generator.stacks module
Module to group images based on the target coordinates into planned stack groups
- mirar.pipelines.wasp.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.wasp.generator.target module
Module to annotate target coordinates on images.
- mirar.pipelines.wasp.generator.target.annotate_target_coordinates(image_batch: ImageBatch) ImageBatch[source]
Function to annotate target coordinates on images. For WASP, this should be the value of RA/DEC in the header of the first image.
- Parameters:
image_batch – ImageBatch object
- Returns:
ImageBatch object