reproject_from_healpix¶
-
reproject.reproject_from_healpix(input_data, output_projection, shape_out=None, hdu_in=1, order='bilinear', nested=None, field=0)[source]¶ Reproject data from a HEALPIX projection to a standard projection.
Parameters: - input_data : str or
TableHDUorBinTableHDUor tuple The input data to reproject. This can be:
- The name of a HEALPIX FITS file
- A
TableHDUorBinTableHDUinstance - A tuple where the first element is a
ndarrayand the second element is aBaseCoordinateFrameinstance or a string alias for a coordinate frame.
- output_projection :
WCSorHeader The output projection, which can be either a
WCSor aHeaderinstance.- shape_out : tuple, optional
If
output_projectionis aWCSinstance, the shape of the output data should be specified separately.- hdu_in : int or str, optional
If
input_datais a FITS file, specifies the HDU to use. (the default HDU for HEALPIX data is 1, unlike with image files where it is generally 0)- order : int 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’
or an integer. A value of
0indicates nearest neighbor interpolation.- nested : bool, optional
The order of the healpix_data, either nested (True) or ring (False). If a FITS file is passed in, this is determined from the header.
- field : int, optional
The column to read from the HEALPIX FITS file. If the fits file is a partial-sky file, field=0 corresponds to the first column after the pixel index column.
Returns: - input_data : str or