Detector.add_images

giant.ufo.detector:

Detector.add_images(data, parse_data=True, preprocessor=True)[source]

This is essentially an alias to the StellarOpNav.add_images() method, but it also expands various lists to account for the new number of images.

When you have already initialized a Detector class you should always use this method to add images for consideration.

The lists that are extended by this method are:

  • invalid_images

  • summed_dn

  • magnitude

  • fit_chi2_value

  • summed_dn_uncertainty

  • saturated

  • summed_dn_count

  • max_dn

  • bearing

  • integrated_psf

  • ra_sigma

  • declination_sigma

  • x_raw_sigma

  • y_raw_sigma

  • occulting

  • saturation_distance

  • trail_length

  • trail_principal_angle

  • star_summed_dn

  • star_observed_magnitude

  • star_fit_chi2_value

  • star_summed_dn_uncertainty

  • star_saturated

  • star_summed_dn_count

  • star_max_dn

  • star_bearing

  • star_integrated_psf

  • star_ra_sigma

  • star_declination_sigma

  • star_x_raw_sigma

  • star_y_raw_sigma

  • star_occulting

  • star_saturation_distance

See the StellarOpNav.add_images() for a description of the valid input for data

Parameters:
  • data (Iterable[Path | str | Sequence[Sequence] | ndarray] | Path | str | Sequence[Sequence] | ndarray) – The image data to be stored in the images list

  • parse_data (bool) – A flag to specify whether to attempt to parse the metadata automatically for the images

  • preprocessor (bool) – A flag to specify whether to run the preprocessor after loading an image.