reproject_adaptive¶
-
reproject.
reproject_adaptive
(input_data, output_projection, shape_out=None, hdu_in=0, order='bilinear', return_footprint=True)[source]¶ Reproject celestial slices from an 2d array from one WCS to another using the DeForest (2004) adaptive resampling algorithm.
Parameters: - input_data : str or
HDUList
orPrimaryHDU
orImageHDU
or tuple The input data to reproject. This can be:
- The name of a FITS file
- An
HDUList
object - An image HDU object such as a
PrimaryHDU
,ImageHDU
, orCompImageHDU
instance - A tuple where the first element is a
ndarray
and the second element is either aWCS
or aHeader
object
- output_projection :
WCS
orHeader
The output projection, which can be either a
WCS
or aHeader
instance.- shape_out : tuple, optional
If
output_projection
is aWCS
instance, the shape of the output data should be specified separately.- hdu_in : int or str, optional
If
input_data
is a FITS file or anHDUList
instance, specifies the HDU to use.- order : int or str, optional
The order of the interpolation. This can be any of the following strings:
- ‘nearest-neighbor’
- ‘bilinear’
or an integer. A value of
0
indicates nearest neighbor interpolation.- return_footprint : bool
Whether to return the footprint in addition to the output array.
Returns: - input_data : str or