reproject_interp(input_data, output_projection, shape_out=None, hdu_in=0, order=u'bilinear', independent_celestial_slices=False)¶
Reproject data to a new projection using interpolation (this is typically the fastest way to reproject an image).
shape_out : tuple, optional
WCSinstance, the shape of the output data should be specified separately.
hdu_in : int or str, optional
input_datais a FITS file or an
HDUListinstance, specifies the HDU to use.
order : int or str, optional
The order of the interpolation (if
modeis set to
'interpolation'). This can be either one of the following strings:
or an integer. A value of
0indicates nearest neighbor interpolation.
independent_celestial_slices : bool, optional
This can be set to
Truefor n-dimensional input in the following case (all conditions have to be fulfilled):
- The number of pixels in each non-celestial dimension is the same between the input and target header.
- The WCS coordinates along the non-celestial dimensions are the same between the input and target WCS.
- The celestial WCS component is independent from other WCS coordinates.
In this special case, we can make things a little faster by reprojecting each celestial slice independently using the same transformation.
The reprojected array
Footprint of the input array in the output array. Values of 0 indicate no coverage or valid values in the input image, while values of 1 indicate valid values.