mSubimage

montage_wrapper.commands.mSubimage(in_image, out_image, ra, dec, xsize, debug=False, all_pixels=False, hdu=None, status_file=None, ysize=None)[source]

Creates a subimage (or “cutout”) of a FITS file. To use mSubimage in ‘pixel’ mode, see mSubimage_pix

Parameters :

in_image : str

Input FITS file.

out_image : str

Path to output FITS file.

ra : float

RA of center of output image.

dec : float

Declination of center of output image.

xsize : float

Width of output image in degrees.

debug : bool, optional

Turns on debugging.

all_pixels : bool, optional

All pixels - Force retrieval of whole image (useful to extract an entire HDU)

hdu : int, optional

Operate on the specified FITS header extension (HDU)

status_file : str, optional

Output and errors are sent to status_file instead of to stdout

ysize : float, optional

Height of output image in degrees (default is equal to xsize.

Page Contents