cwitools.imaging¶
Tools for masking, smoothing, and extracting regions.
Functions
get_cutout(fits_in, ra, dec, box_size[, z, fill]) |
Extract a box (in pkpc) around a central position from a 2D or 3D FITS. |
get_mask(image, header, reg[, fit, fit_box, …]) |
Get fitted mask of sources based on a DS9 region file. |
get_pseudo_nb(fits, wav_center, wav_width[, …]) |
Create a pseudo-Narrow-Band (pNB) image from a data cube. |
slice_fix(image[, mask, axis, scval]) |
Perform slice-by-slice median correction in an image. |
smooth_nd(data, scale[, axes, ktype, var]) |
Smooth along all/any axes of a data cube with a box or gaussian kernel. |