Input/Output

Input/Output#

Construction#

open_catalog(path, search_filter, columns, ...)

Open a catalog from a HATS path.

show_versions()

Print runtime versions and system info, useful for bug reports.

from_dataframe(dataframe, *[, ra_column, ...])

Load a catalog from a Pandas Dataframe.

from_astropy(table, *[, ra_column, ...])

Load a catalog from an Astropy Table.

nested.datasets.generation.generate_catalog(...)

Generates a toy catalog.

Materializing#

Typically, you would materialize a catalog via catalog.write_catalog() calls, and they will call these io methods with appropriate settings.

io.to_hats(catalog, *, base_catalog_path[, ...])

Writes a catalog to disk, in HATS format.

io.to_collection(catalog, *, ...[, ...])

Saves the catalog collection to disk in the HATS format.

io.to_association(catalog, *, base_catalog_path)

Writes a crossmatching product to disk, in HATS association table format.