mProject¶
-
montage_wrapper.commands.
mProject
(in_image, out_image, template_header, factor=None, debug_level=None, status_file=None, hdu=None, scale=None, weight_file=None, threshold=None, whole=False)[source] [edit on github]¶ mProject reprojects a single image to the scale defined in a FITS header template file (read more about header templates here). The program produces a pair of images: the reprojected image and an “area” image consisting of the fraction input pixel sky area that went into each output pixel. The “drizzle” algorithm is implemented. The algorithm proceeds by mapping pixel corners (as adjusted by drizzle, if called) from the input pixel space to the output pixel space, calculating overlap area with each output pixel, and accumulating an appropriate fraction of the input flux into the output image pixels. In addition, the appropriate fraction of the input pixel area is accumulated into the area image pixels. Projection of points from input pixel space to output pixel space is calculated in two steps: first map from input pixel space to sky coordinates; second map from sky coordinates to output pixel space.
Parameters: in_image : str
Input FITS file to be reprojected.
out_image : str
Path of output FITS file to be created.
template_header : str
FITS header template to be used in generation of output image
factor : float, optional
Processing is done utilizing the drizzle algorithm. factor is a floating point number; recommended drizzle factors are from 0.5 to 1.
debug_level : int, optional
Causes additional debugging information to be printed to stdout. Valid levels are 1-5 (for higher debugging levels, it is recommended to redirect the output to a file).
status_file : str, optional
Output and errors are written to status_file instead of being written to stdout.
hdu : int, optional
Use the specified FITS extension (default is to use the first HDU with image data)
scale : float, optional
Apply a correction factor of scale to each pixel
weight_file : str, optional
Path to a weight map to be used when reading values from the input image.
threshold : float, optional
Pixels with weights below threshold will be treated as blank.
whole : bool, optional
Makes the output region (originally defined in the header template) big enough to include all of the input images