check_fit

sitelle.fit.check_fit(source, SN2_ORCS, SN3_ORCS, SN2_detection_frame, SN3_detection_frame, **kwargs)

Convenience function to display a fit and visually check if it is meaningful. The fit is recomputed.

Parameters:
  • source (Series) – A row from a DataFrame containing detected sources. Should have columns xpos_SN2, ypos_SN2, xpos_SN3, ypos_SN3.
  • SN2_ORCS (SpectralCube) – The cube taken in SN2 filter.
  • SN3_ORCS (SpectralCube) – The cube taken in SN3 filter.
  • SN2_detection_frame (2D ndarray) – The SN2 frame on which the source position has been found
  • SN3_detection_frame (2D ndarray) – The SN3 frame on which the source position has been found
  • kwargs (dict) – Additional keyword arguments to be passed to fit_source()
Returns:

  • fit_SN2 (dict) – Fit parameters in SN2 filter
  • fit_SN3 (dict) – Fit parameters in SN3 filter

Note

The signature is not well constructed yet, and works only with sources defined as a DataFrame, and has to be performed on both cubes (no possibility to check a fit from a single cube)