reproject_to_hips#

reproject.hips.reproject_to_hips(input_data, *, coord_system_out, reproject_function, output_directory, level=None, level_depth=None, hdu_in=0, tile_size=512, tile_depth=16, progress_bar=None, threads=False, properties=None, **kwargs)[source]#

Reproject data from a standard projection to a set of Hierarchical Progressive Surveys (HiPS) tiles.

Parameters:
input_dataobject

The input data to reproject. This can be:

coord_system_out{‘equatorial’, ‘galactic’, ‘ecliptic’ }

The target coordinate system for the HEALPIX projection

reproject_functioncallable

The function to use for the reprojection.

output_directorystr

The name of the output directory - if this already exists, an error will be raised.

levelint, optional

The number of levels of tiles for celestial coordinates.

level_depthint, optional

The number of levels of tiles for the third (e.g. spectral) dimension.

hdu_inint or str, optional

If input_data is a FITS file or an HDUList instance, specifies the HDU to use.

tile_sizeint or tuple, optional

The size of each individual tile (defaults to 512) for celestial dimensions.

tile_depthint or tuple, optional

The depth of each individual tile (defaults to 16) for the third (e.g. spectral) dimension when present.

progress_barcallable, optional

If specified, use this as a progress_bar to track loop iterations over data sets.

threadsbool or int

If False, no multi-threading is used. If an integer, this number of threads will be used, and if True, the number of threads will be chosen automatically.

propertiesdict, optional

Dictionary of properties that should be output to the properties file inside the HiPS dataset. At list of properties and their meanings can be found in the HiPS 1.0 description.

**kwargs

Keyword arguments to be passed to the reprojection function.

Returns:
None

This function does not return a value.