hats.loaders.read_hats#
Attributes#
Functions#
|
Reads a HATS Catalog from a HATS directory |
|
|
|
Reads a MOC object from the point_map.fits file if it exists in the catalog directory |
|
Reads the schema information stored in the _common_metadata or _metadata files. |
Module Contents#
- read_hats(catalog_path: str | pathlib.Path | upath.UPath) hats.catalog.Dataset [source]#
Reads a HATS Catalog from a HATS directory
- Parameters:
catalog_path (str) – path to the root directory of the catalog
- Returns:
The initialized catalog object
Examples
To read a catalog from a public S3 bucket, call it as follows:
from upath import UPath catalog = hats.read_hats(UPath(..., anon=True))