multicolorfits.reproject_stack_to_header#

multicolorfits.reproject_stack_to_header(images, hdrto, method='interp', scale=False, return_footprints=False)[source]#

Reproject every (data, header) pair onto a single target header.

Parameters:
  • images (list of (array, header) tuples)

  • hdrto (astropy.io.fits.header) – Target WCS grid (the ‘master’ header all layers will share).

  • method (passed to reproject_image)

  • scale (passed to reproject_image)

  • return_footprints (bool) – If True, return list of footprint arrays alongside data.

Returns:

list of array (, list of footprints) – One reprojected data array per input image, all on hdrto’s grid.