Data format
All output files are HDF5. Each file contains one or more groups (one per statistic).
The file root carries a git_hash attribute.
HDF5 group schema
smf/{sample_name} and lf/{sample_name}:
smf/{sample_name}/
├── attrs (provenance — see table below)
├── cosmology/ H0, Om0, Ok0, Ob0
├── bin_edges (N+1,) [dex or mag]
├── log10mstar_centres | mag_centres (N,)
├── phi (N,) [Mpc⁻³ dex⁻¹ or Mpc⁻³ mag⁻¹]
├── phi_err (N,)
└── cov (N, N)
twopcf/{stat}/{sample_name} (stat = wp · wtheta · xi):
├── bin_edges (N+1,) [Mpc or arcmin]
├── sep_centres (N,)
├── xi (N,) [Mpc or dimensionless]
└── cov (N, N)
esd/{sample_name}:
├── rp_bin_edges (N+1,) [Mpc]
├── rp_centres (N,)
├── delta_sigma (N,) [M_sun/pc²]
└── cov (N, N)
joint_covariance (joint files only):
├── data_vector (N_total,) [phi | wp | ΔΣ]
├── err_jackknife (N_total,)
├── cov (N_total, N_total)
├── jk_subsamples (N_JK, N_total)
├── mstar_centres (N_smf,) [dex]
└── rp_centres (N_wp,) [Mpc]
Provenance attributes
Every group carries these attrs:
Attribute |
Type |
gga_model |
Description |
|---|---|---|---|
|
str |
— |
Script that produced this group |
|
str |
— |
Short git commit hash at run time |
|
str |
— |
UTC ISO-8601 timestamp |
|
str |
— |
|
|
str |
— |
|
|
str |
— |
Semicolon-separated absolute input paths |
|
float |
yes |
|
|
int |
— |
Number of galaxies |
|
int |
— |
Number of randoms ( |
|
str |
yes |
|
|
float |
yes |
Redshift interval |
|
float |
yes |
Survey footprint |
|
str |
yes |
|
|
str |
yes |
|
Reading example
import h5py
with h5py.File("data/lf_smf/BGS_Mstar9.00_z0.05_0.08-smf-vmax.h5") as f:
grp = f["smf/BGS_Mstar9.00_z0.05_0.08"]
phi = grp["phi"][:]
cov = grp["cov"][:]
z_eff = grp.attrs["z_eff"]
area_sr = grp.attrs["area_sr"]
gga_model required fields
Field |
Notes |
|---|---|
|
Measurement and covariance |
|
Must match model grid |
|
Evaluates model at correct epoch |
|
Normalises volume integral |
|
Selects matching likelihood |
|
Redshift window for selection function |
|
Selects systematic branch |
|
Hartlap correction flag |