multicolorfits.reproject_stack_to_reference#
- multicolorfits.reproject_stack_to_reference(images, reference=0, method='interp', scale=False, frame=None, projection=None, fit_footprint=True, return_footprints=False)[source]#
Reproject all images onto the grid of a reference layer.
- Parameters:
images (list of (array, header) tuples)
reference (int) – Index of the layer whose header defines the target grid (default 0).
frame (str or None) – If set (e.g. ‘galactic’), the reference header is first converted to that celestial frame before reprojection (see convert_header_frame).
projection (passed to convert_header_frame when frame set)
fit_footprint (passed to convert_header_frame when frame set)
method (passed to reproject_image)
scale (passed to reproject_image)
return_footprints (bool)
- Returns:
list of array, header (, footprints) – Reprojected data arrays and the common target header.