lsst.pipe.tasks gcf00bf066d+02752e367a
Loading...
Searching...
No Matches
lsst.pipe.tasks.rgb2hips._utils Namespace Reference

Functions

int _get_dir_number (int pixel)
 
None _write_hips_image (NDArray image_data, int pixel_id, int hpx_level, ResourcePath hips_base_path, str file_extension, str output_type)
 

Variables

 MAX_IMAGE_PIXELS
 

Function Documentation

◆ _get_dir_number()

int lsst.pipe.tasks.rgb2hips._utils._get_dir_number ( int pixel)
protected
Compute the directory number from a pixel.

Parameters
----------
pixel : `int`
    HEALPix pixel number.

Returns
-------
dir_number : `int`
    HiPS directory number.

Definition at line 38 of file _utils.py.

◆ _write_hips_image()

None lsst.pipe.tasks.rgb2hips._utils._write_hips_image ( NDArray image_data,
int pixel_id,
int hpx_level,
ResourcePath hips_base_path,
str file_extension,
str output_type )
protected
Write a processed image to disk in the HealPix tile format.

This function takes processed image data, converts it to the specified output
type, and saves it into the appropriate directory structure based on the HealPix
pixel ID and order level.

Parameters
----------
image_data : `NDArray`
    The RGB image data array to be written as a HealPix tile.
pixel_id : `int`
    The unique HealPix ID corresponding to the output tile.
hpx_level : `int`
    The HealPix order level of the output tile.
hips_base_path : `ResourcePath`
    Base directory path where the HealPix tiles will be stored.
file_extension : `str`
    File extension (format) for saving the image ('png' or 'webp').
output_type : `str`
    Data type of the output array, which can be:
        - "uint8": 8-bit unsigned integers (0-255)
        - "uint16": 16-bit unsigned integers (0-65535)
        - "half": 16-bit floating-point numbers
        - "float": 32-bit floating-point numbers

Definition at line 54 of file _utils.py.

Variable Documentation

◆ MAX_IMAGE_PIXELS

lsst.pipe.tasks.rgb2hips._utils.MAX_IMAGE_PIXELS

Definition at line 35 of file _utils.py.