autowisp.processing_steps.find_stars module

Class Inheritance Diagram

Inheritance diagram of Component, DataReductionFile, Evaluator, ExitStack, FileKind, ManualStepArgumentParser, NoSourcesFoundError, ObservingSession, SourceFinder, partial

Detect stars within calibrated image(s).

autowisp.processing_steps.find_stars._find_stars_worker(image_fname, *, find_stars_in_image, srcextract_version, mark_start, mark_end, observing_session_ids)[source]

Pool worker: dispatch to find_stars_single with the matching id.

autowisp.processing_steps.find_stars._resolve_observing_session_ids(image_collection, configuration)[source]

Pre-resolve provenance once in the parent (single-threaded).

Returns a {image_fname: observing_session_id} map. Empty if --no-provenance is set. Running this in the parent avoids the target/session-name UNIQUE races that would otherwise hit when several worker processes call get_or_create_* against the same survey row.

autowisp.processing_steps.find_stars.allowed_interrupted_status_values = (0,)

This step records only “started” before it finishes, so that is the only state an interrupted run can leave behind.

autowisp.processing_steps.find_stars.cleanup_interrupted(interrupted, configuration)[source]

Remove the extracted stars from the DR of the given calibrated image.

autowisp.processing_steps.find_stars.find_stars(image_collection, start_status, configuration, mark_start, mark_end)[source]

Extract sources from all input images and save them to DR files.

autowisp.processing_steps.find_stars.find_stars_single(image_fname, find_stars_in_image, srcextract_version, mark_start, mark_end, observing_session_id=None)[source]

Find the stars in a single image.

If observing_session_id is given (i.e. provenance was pre-resolved by the caller), the worker looks up the ObservingSession row by id and writes the /Provenance group to the DR file. Pre-resolving in the caller – rather than per worker – is what prevents races when multiple workers see the same target/session.

autowisp.processing_steps.find_stars.main()[source]

Run the step from the command line.

autowisp.processing_steps.find_stars.parse_command_line(*args)[source]

Return the parsed command line arguments.