convert_contour¶
-
sitelle.region.convert_contour(original_cube, contour, new_cube)¶ Convert a contour computed on a given cube to a new cube, using astrometric calibration. It allows to plot the same contoured region on different datacubes.
Parameters: - original_cube (
SpectralCube) – Cube on which the contour has been computed - new_cube (
SpectralCube) – Cube on which we want to project the contour - contour (dict) – the contour, i.e. a dict of 4 1D regions : top, bottom, left, right
Returns: contour – the contour projected on the new cube
Return type: dict
- original_cube (