halocat.io¶
io
¶
Reading GLAM CatshortV catalogues and writing halo HDF5 files.
read_catalogue
¶
Read a CatshortV.*.DAT plain-text halo catalogue.
Returns a dict of 1D numpy arrays keyed by column name. Empty / missing files raise FileNotFoundError or yield empty arrays.
Source code in halocat/io.py
write_halo_hdf5
¶
Write the halo dict to an HDF5 file with optional attributes.
Source code in halocat/io.py
read_halo_hdf5
¶
Read back a halo.hdf5 file written by write_halo_hdf5.