hats.pixel_math.box_filter#
Functions#
|
Generates a MOC object that covers the specified box. A box is delimited |
|
Wraps angles to the [0,360] degree range. |
Module Contents#
- generate_box_moc(ra: tuple[float, float], dec: tuple[float, float], order: int) mocpy.MOC [source]#
Generates a MOC object that covers the specified box. A box is delimited by right ascension and declination ranges. The right ascension edges follow great arc circles and the declination edges follow small arc circles.
- Parameters:
ra (Tuple[float, float]) – Right ascension range, in [0,360] degrees
dec (Tuple[float, float]) – Declination range, in [-90,90] degrees
order (int) – Maximum order of the moc to generate the box at
- Returns:
a MOC object that covers the specified box
- wrap_ra_angles(ra: numpy.ndarray | collections.abc.Iterable | int | float) numpy.ndarray [source]#
Wraps angles to the [0,360] degree range.
- Parameters:
ra (ndarray | Iterable | int | float) – Right ascension values, in degrees
- Returns:
A numpy array of right ascension values, wrapped to the [0,360] degree range.