nbody.io
Routines for reading nbody (gbpHalos, gbpTrees etc.) output files.
-
dragons.nbody.io.
read_density_grid
(fname)[source]
Read in a density grid produced by gbpCode.
- Args:
- fname : str
- Full path to input grid file.
- Returns:
- grid : array
- The density grid.
-
dragons.nbody.io.
read_halo_catalog
(catalog_loc)[source]
Read in a halo catalog produced by gbpCode.
- Args:
- catalog_loc : str
- Full path to input catalog file or directory
- Returns:
- halo : array
- The catalog of halos