match_fits

image_registration.FITS_tools.match_fits(fitsfile1, fitsfile2, header=None, sigma_cut=False, use_mad_std=True, return_header=False, **kwargs)[source]

Project one FITS file into another’s coordinates If sigma_cut is used, will try to find only regions that are significant in both images using the standard deviation

Parameters:
fitsfile1: str

Reference fits file name

fitsfile2: str

Offset fits file name

header: pyfits.Header

Optional - can pass a header to projet both images to

sigma_cut: bool or int

Perform a sigma-cut on the returned images at this level

use_mad_stdbool

Use mad_std instead of std dev for stddev estimation

Returns:
image1,image2,[header]Two images projected into the same space, and
optionally the header used to project them