project_to_header¶
-
FITS_tools.match_images.project_to_header(fitsfile, header, use_montage=True, quiet=True, **kwargs)[source] [edit on github]¶ Light wrapper of montage with hcongrid as a backup
kwargs will be passed to
hcongridifuse_montage==FalseParameters: fitsfile : string
a FITS file name
header :
HeaderA fits Header instance with valid WCS to project to
use_montage : bool
Use montage or hcongrid (based on
map_coordinates)quiet : bool
Silence Montage’s output
Returns: image :
ndarrayimage projected to header’s coordinates