mirar.references package
Module for generating reference images
Subpackages
- mirar.references.wfcam package
- Subpackages
- Submodules
- mirar.references.wfcam.utils module
- mirar.references.wfcam.wfcam_query module
- mirar.references.wfcam.wfcam_stack module
Submodules
mirar.references.base_reference_generator module
Module with base class for reference image generation
- class mirar.references.base_reference_generator.BaseReferenceGenerator(filter_name: str, write_image: bool = True, write_image_sub_dir: str = 'references', write_to_db: bool = False, db_table: Type[BaseDB] = None, duplicate_protocol: str = 'replace', q3c_bool: bool = True)[source]
Bases:
objectBase Reference Image Generator. Subclasses should implement get_reference, which returns a reference image HDU, and a reference weight image HDU. Classes using this generator should call get_reference_image to get the reference image as an Image object. Users can optionally choose to save the reference images to a file and/or database.
- property abbreviation
Abbreviation for image naming
- class mirar.references.base_reference_generator.BaseStackReferenceGenerator(filter_name: str, image_resampler_generator: Callable[[...], Swarp], write_stacked_image: bool = True, write_stack_sub_dir: str = 'references/stack', write_stack_to_db: bool = False, stacks_db_table: Type[BaseDB] = None, duplicate_protocol: str = 'replace', q3c_bool: bool = False, stack_image_annotator: Callable[[Image, Image], Image] = None, references_base_subdir_name: str = 'references', photcal_stack: bool = False, sextractor_generator: Callable[[...], Sextractor] = None, phot_calibrator_generator: Callable[[...], PhotCalibrator] = None)[source]
Bases:
BaseReferenceGeneratorBase processor where multiple images need to be stacked together
- get_component_images(image: Image) ImageBatch[source]
Get component reference images that will be stacked together. :param image: image :return: ImageBatch of component reference images to be used for stacking
- exception mirar.references.base_reference_generator.ReferenceGenerationError[source]
Bases:
ProcessorErrorError for reference generation
mirar.references.errors module
Module containing errors for reference images
- exception mirar.references.errors.ReferenceImageError[source]
Bases:
ProcessorErrorError with reference image
mirar.references.local module
Module for getting reference images stored locally
- class mirar.references.local.RefFromPath(path: str, filter_name: str, write_image: bool = False, write_to_db: bool = False, db_table: Type[BaseDB] = None, duplicate_protocol: str = 'replace', q3c_bool: bool = True, weight_path: str = None)[source]
Bases:
BaseReferenceGeneratorGet locally saved ref from path
- abbreviation = 'local'
mirar.references.ps1 module
Module for PS1 reference image generator
- class mirar.references.ps1.PS1Ref(filter_name: str, write_image: bool = True, write_image_sub_dir: str = 'references', write_to_db: bool = False, db_table: Type[BaseDB] = None, duplicate_protocol: str = 'replace', q3c_bool: bool = True)[source]
Bases:
BaseReferenceGeneratorPS1 Ref generator
- abbreviation = 'ps1_ref_lookup'
- getimages(ra_deg: float, dec_deg: float, filters='grizy') Table[source]
Query ps1filenames.py service to get a list of images
ra, dec = position in degrees size = image size in pixels (0.25 arcsec/pixel) filters = string with filters to include Returns a table with the results
- geturl(ra_deg: float, dec_deg: float, size: int = 240, output_size=None, filters='grizy', file_format='fits', color=False)[source]
Get URL for images in the table
ra, dec = position in degrees size = extracted image size in pixels (0.25 arcsec/pixel) output_size = output (display) image size in pixels (default = size).
output_size has no effect for fits format images.
filters = string with filters to include format = data format (options are “jpg”, “png” or “fits”) color = if True, creates a color image (only for jpg or png format).
Default is return a list of URLs for single-filter grayscale images.
Returns a string with the URL
mirar.references.sdss module
Module for generating reference images from SDSS
- class mirar.references.sdss.SDSSRef(filter_name: str, write_image: bool = True, write_image_sub_dir: str = 'references', write_to_db: bool = False, db_table: Type[BaseDB] = None, duplicate_protocol: str = 'replace', q3c_bool: bool = True)[source]
Bases:
BaseReferenceGeneratorSDSS ref generator
- abbreviation = 'sdss_ref_lookup'
mirar.references.wirc module
Module for generating reference images with WIRC data