mirar.processors.astromatic.scamp package

Subpackages

Submodules

mirar.processors.astromatic.scamp.scamp module

Module to run Scamp

class mirar.processors.astromatic.scamp.scamp.Scamp(ref_catalog_generator: Callable[[Header], BaseCatalog], scamp_config_path: str, temp_output_sub_dir: str = 'scamp', cache: bool = False, copy_scamp_header_to_image: bool = False)[source]

Bases: BaseImageProcessor

Class for Scamp Processor

base_key = 'scamp'
check_prerequisites()[source]

Check to see if any prerequisite processors are missing

Returns:

None

get_scamp_output_dir() Path[source]

Function to get scamp output directory Returns: Path

mirar.processors.astromatic.scamp.scamp.run_scamp(scamp_list_path: str | Path, scamp_config_path: str | Path, ast_ref_cat_path: str | Path, output_dir: str | Path, timeout_seconds: float = 60.0)[source]

Function to run scamp. NOTE : By default, the scamp instance here is only designed to run for astrometry. This function thus enforces SOLVE_PHOTOM = N as otherwise Scamp behaves weirdly and can output FLXSCALE != 1 in the output header. This can cause incosistencies down the line, e.g. with Swarp. Args:

scamp_list_path: scamp_config_path: ast_ref_cat_path: output_dir: timeout_seconds:

Returns:

mirar.processors.astromatic.scamp.scamp.write_scamp_header_to_image(image: Image)[source]

Function to write the scamp header to the image.