hyrax.data_sets.lsst_dataset
Attributes
Classes
LSSTDataset: A dataset to access deep_coadd images from lsst pipelines |
Module Contents
- class LSSTDataset(config)[source]
Bases:
hyrax.data_sets.data_set_registry.HyraxDataset,hyrax.data_sets.data_set_registry.HyraxImageDataset,torch.utils.data.DatasetLSSTDataset: A dataset to access deep_coadd images from lsst pipelines via the butler. Must be run in an RSP.
Initialize the dataset with either a HATS catalog or astropy table.
Config can specify either: - config[“data_set”][“hats_catalog”]: path to HATS catalog - config[“data_set”][“astropy_table”]: path to any file readable by Astropy Table
- _load_catalog(data_set_config)[source]
Load the catalog from either a HATS catalog or an astropy table.
- _load_astropy_catalog(table_path)[source]
Load catalog from astropy table format or pickled astropy table.
- _parse_box(patch, row)[source]
Return a Box2I representing the desired cutout in pixel space, given a “row” of catalog data which includes the semi-height (sh) and semi-width (sw) in degrees desired for the cutout.
- _parse_sphere_point(row)[source]
Return a SpherePoint with the ra and deck given in the “row” of catalog data. Row must include the RA and dec as “ra” and “dec” columns respectively
- _get_tract_patch(row)[source]
Return (tractInfo, patchInfo) for a given row.
This function only returns the single principle tract and patch in the case of overlap.