autowisp.source_finder module

Class Inheritance Diagram

Inheritance diagram of Evaluator, SourceFinder

Uniform interface for source extractoin using several methods.

class autowisp.source_finder.SourceFinder(*, tool='hatphot', brightness_threshold=10, filter_sources='True', max_sources=0, allow_overwrite=False, allow_dir_creation=False, always_return_sources=False)[source]

Bases: object

Inheritance diagram of autowisp.source_finder.SourceFinder

Find sources in an image of the night sky and repor properties.

__call__(fits_fname, source_fname=None, **configuration)[source]

Extract the sources from the given frame and save or return them.

Parameters:
  • fits_fname (str) – The filename of the fits file to extract sources from. Can be packed or unpacked.

  • source_fname (str or None) – If None, the extract sources are returned as numpy. field array. Otherwise, this specifies a file to save the source extractor output.

Returns:

The extracted source from the image, if source_fname was None.

Return type:

field array or None

__init__(*, tool='hatphot', brightness_threshold=10, filter_sources='True', max_sources=0, allow_overwrite=False, allow_dir_creation=False, always_return_sources=False)[source]

Prepare to use the specified tool and define faint limit.

_add_saturation_flags(fits_fname, source_list)[source]

Add array of how many pixels near source are saturated.

static _create_mock_source_list(fits_fname, configuration)[source]

Create a source list with randomly generated properties.