extract_max_frame¶
-
sitelle.source.extract_max_frame(x, y, spectral_cube, id_max_detection_frame)¶ For a given spatial position, extracts a few frames around the maximum of detection in the cube and returns their sum.
Parameters: - x (int) – Abscisse of the source, in pixels
- y (int) – Ordinate of the source, in pixels
- spectral_cube (
SpectralCube) – SpectralCube instance where we are looking at the source - id_max_detection_frame (int) – Index of the max frame along the z dimension
Returns: out – A cutout of the sum of the frames around the max of detection
Return type: 2D
ndarray