hipscatalog_gen.healpix.densmap.ipix_for_depth
- ipix_for_depth(ra_deg, dec_deg, depth)[source]
Return HEALPix NESTED pixel indices for a given depth (order).
Ensures the return type is always a 1D numpy.ndarray[int64], even if Healpy would otherwise return a scalar for scalar inputs.
- Parameters:
ra_deg (ndarray) – Right ascension in degrees.
dec_deg (ndarray) – Declination in degrees.
depth (int) – HEALPix order (depth).
- Returns:
Numpy array (1D) with NESTED pixel indices (dtype=int64).
- Return type:
ndarray[tuple[Any, …], dtype[int64]]