Region (sitelle.region)¶
Introduction¶
Convenience functions to create regions
Reference/API¶
sitelle.region Module¶
File containing helper functions to defines regions in the cube, in the format of tuple of indexes.
Functions¶
circular_region(x, y, r) |
Computes a circular region of radius r centered on (x,y) |
square_region(x, y, b) |
Computes a square region of size b*b |
centered_square_region(x, y, b) |
Computes a square region of size b*b centered on x,y |
physical_region(cube, ra, dec[, r, circle, …]) |
Computes a physical region on a sitelle cube. |
remap(map[, binMap, binsize, original_shape]) |
Used to remap a binned map on a full map User has to provide either a binMap, or a binsize and an original shape |
get_contour_boundaries(region) |
DEPRECATED |
fill_contour(mask, contour) |
Fill the inside of a contour, to go back to the original region. |
smooth_contour(contour) |
Smooth discontinuous contours |
convert_contour(original_cube, contour, new_cube) |
Convert a contour computed on a given cube to a new cube, using astrometric calibration. |