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
out_image : str
template_header : str
factor : float, optional
debug_level : int, optional
status_file : str, optional
hdu : int, optional
scale : float, optional
weight_file : str, optional
threshold : float, optional
whole : bool, optional
|
---|