reproject_to_healpix#
- reproject.reproject_to_healpix(input_data, coord_system_out, hdu_in=0, order='bilinear', nested=False, nside=128)[source]#
Reproject data from a standard projection to a HEALPIX projection.
- Parameters:
- input_dataobject
The input data to reproject. This can be:
The name of a FITS file as a
stror apathlib.PathobjectAn
HDUListobjectAn image HDU object such as a
PrimaryHDU,ImageHDU, orCompImageHDUinstanceA tuple where the first element is a
ndarrayand the second element is either aBaseLowLevelWCS,BaseHighLevelWCS, or aHeaderobjectAn
NDDataobject from which the.dataand.wcsattributes will be used as the input data.
- coord_system_out
BaseCoordinateFrameor str The output coordinate system for the HEALPIX projection.
- hdu_inint or str, optional
If
input_datais a FITS file or anHDUListinstance, specifies the HDU to use.- orderint or str, optional
The order of the interpolation (if
modeis set to'interpolation'). This can be either one of the following strings:‘nearest-neighbor’
‘bilinear’
‘biquadratic’
‘bicubic’
or an integer. A value of
0indicates nearest neighbor interpolation.- nestedbool
The order of the healpix_data, either nested (
True) or ring (False).- nsideint, optional
The resolution of the HEALPIX projection.
- Returns: