scale_image¶
- stginga.utils.scale_image(infile, outfile, zoom_factor, ext=('SCI', 1), clobber=False, debug=False)[source]¶
Rescale the image size in the given extension by the given zoom factor and adjust WCS accordingly.
WCS adjustment is done using
scale_wcs()
.Output image is a single-extension FITS file with only the given extension header and data.
- Parameters:
- infile, outfilestr
Input and output filenames.
- zoom_factorfloat
See
scipy.ndimage.zoom()
.- extint, str, or tuple
Extension to extract.
- clobberbool
If
True
, overwrite existing output file.- debugbool
If
True
, print extra information to screen.
- Raises:
- ValueError
Invalid data.