mirar.pipelines.wirc package

Module containing all relevant scripts for reducing data from the Wide-Field Infrared Camera (WIRC) on the Palomar 200-inch

Subpackages

Submodules

mirar.pipelines.wirc.blocks module

Module containing standard processing blocks for WIRC

mirar.pipelines.wirc.generator module

Module containing WIRC-specific generator functions to yield e.g catalog for astrometric calibrations

mirar.pipelines.wirc.generator.wirc_astrometric_catalog_generator(_) Gaia2Mass[source]

Function to crossmatch WIRC to GAIA/2mass for astrometry

Returns:

catalogue

mirar.pipelines.wirc.generator.wirc_photometric_catalog_generator(image: Image) Gaia2Mass[source]

Function to crossmatch WIRC to GAIA/2mass for photometry

Parameters:

image – Image

Returns:

catalogue

mirar.pipelines.wirc.generator.wirc_photometric_img_catalog_purifier(catalog, image)[source]

Function to purify the photometric catalog

Returns:

purified catalog

mirar.pipelines.wirc.generator.wirc_reference_image_generator(image: Image, images_directory: str | None = None) WIRCRef[source]

Function to match a new wirc image to a reference image directory

Parameters:
  • image – image

  • images_directory – ref image directory

Returns:

wirc ref

mirar.pipelines.wirc.generator.wirc_reference_image_resampler(**kwargs) Swarp[source]

Returns a SWarp resampler for WIRC

mirar.pipelines.wirc.generator.wirc_reference_psfex(output_sub_dir: str, norm_fits: bool) PSFex[source]

Returns a PSFEx processor for WIRC

mirar.pipelines.wirc.generator.wirc_reference_sextractor(output_sub_dir: str, gain: float) Sextractor[source]

Returns a Sextractor processor for WIRC reference images

mirar.pipelines.wirc.generator.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.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.load_wirc_image module

Module for loading raw WIRC images and ensuring they have the correct format

mirar.pipelines.wirc.load_wirc_image.load_raw_wirc_fits(path: str | Path) tuple[array, Header][source]

Function to load a raw WIRC image

Parameters:

path – path of file

Returns:

data and header of image

mirar.pipelines.wirc.load_wirc_image.load_raw_wirc_image(path: str | Path) Image[source]

Function to load a raw WIRC image

Parameters:

path – Path to the raw image

Returns:

Image object

mirar.pipelines.wirc.wirc_pipeline module

Module for the WIRC (https://doi.org/10.1117/12.460336) pipeline

class mirar.pipelines.wirc.wirc_pipeline.WircPipeline(selected_configurations: str | list[str] = 'default', night: int | str = '')[source]

Bases: Pipeline

Pipeline for WIRC on the Palomar 200-inch telescope

all_pipeline_configurations = {'default': [<mirar.processors.utils.image_loader.ImageLoader object>, <mirar.processors.csvlog.CSVLog object>, <mirar.processors.mask.MaskPixelsFromPath object>, <mirar.processors.utils.image_selector.ImageSelector object>, <mirar.processors.dark.DarkCalibrator object>, <mirar.processors.utils.image_saver.ImageSaver object>, <mirar.processors.utils.header_annotate.HeaderAnnotator object>, <mirar.processors.utils.image_selector.ImageDebatcher object>, <mirar.processors.utils.image_selector.ImageSelector object>, <mirar.processors.utils.image_selector.ImageBatcher object>, <mirar.processors.flat.SkyFlatCalibrator object>, <mirar.processors.sky.NightSkyMedianCalibrator object>, <mirar.processors.astrometry.autoastrometry.autoastrometry_processor.AutoAstrometry object>, <mirar.processors.astromatic.sextractor.sextractor.Sextractor object>, <mirar.processors.astromatic.scamp.scamp.Scamp object>, <mirar.processors.utils.image_saver.ImageSaver object>, <mirar.processors.astromatic.swarp.swarp.Swarp object>, <mirar.processors.utils.image_saver.ImageSaver object>, <mirar.processors.astromatic.sextractor.sextractor.Sextractor object>, <mirar.processors.mask.MaskPixelsFromPathInverted object>, <mirar.processors.utils.image_saver.ImageSaver object>, <mirar.processors.mask.MaskAboveThreshold object>, <mirar.processors.utils.image_saver.ImageSaver object>, <mirar.processors.mask.WriteMaskedCoordsToFile object>, <mirar.processors.astromatic.swarp.component_images.ReloadSwarpComponentImages object>, <mirar.processors.utils.image_loader.LoadImageFromHeader object>, <mirar.processors.astrometry.utils.AstrometryFromFile object>, <mirar.processors.utils.image_saver.ImageSaver object>, <mirar.processors.mask.MaskPixelsFromWCS object>, <mirar.processors.utils.image_saver.ImageSaver object>, <mirar.processors.flat.SkyFlatCalibrator object>, <mirar.processors.sky.NightSkyMedianCalibrator object>, <mirar.processors.astromatic.sextractor.sextractor.Sextractor object>, <mirar.processors.astromatic.swarp.swarp.Swarp object>, <mirar.processors.astromatic.sextractor.sextractor.Sextractor object>, <mirar.processors.photcal.PhotCalibrator object>, <mirar.processors.utils.image_saver.ImageSaver object>], 'imsub': [<mirar.processors.utils.image_loader.ImageLoader object>, <mirar.processors.reference.ProcessReference object>, <mirar.processors.astromatic.sextractor.sextractor.Sextractor object>, <mirar.processors.astromatic.psfex.psfex.PSFex object>, <mirar.processors.zogy.zogy.ZOGYPrepare object>, <mirar.processors.zogy.zogy.ZOGY object>, <mirar.processors.utils.image_saver.ImageSaver object>, <mirar.processors.sources.source_detector.ZOGYSourceDetector object>, <mirar.processors.sources.utils.regions_writer.RegionsWriter object>, <mirar.processors.photometry.psf_photometry.PSFPhotometry object>, <mirar.processors.photometry.aperture_photometry.AperturePhotometry object>, <mirar.processors.sources.source_table_modifier.CustomSourceTableModifier object>, <mirar.processors.xmatch.XMatch object>, <mirar.processors.xmatch.XMatch object>, <mirar.processors.sources.source_exporter.SourceWriter object>, <mirar.processors.database.database_selector.CrossmatchSourceWithDatabase object>, <mirar.processors.sources.namer.CandidateNamer object>, <mirar.processors.database.database_selector.DatabaseHistorySelector object>, <mirar.processors.utils.header_annotate.HeaderAnnotator object>, <mirar.processors.utils.header_annotate.HeaderAnnotator object>, <mirar.processors.utils.header_annotate.HeaderAnnotator object>, <mirar.processors.database.database_inserter.DatabaseSourceInserter object>, <mirar.processors.sources.source_exporter.SourceWriter object>, <mirar.processors.utils.header_annotate.HeaderAnnotator object>, <mirar.processors.avro.ipac_avro_exporter.IPACAvroExporter object>, <mirar.processors.skyportal.skyportal_candidate.SkyportalCandidateUploader object>]}
static download_raw_images_for_night(night: str | int)[source]

Function to download images from a remote server

Parameters:

night – Night of data to download

Returns:

None

name = 'wirc'
non_linear_level = 30000