sp_validation.cosmo_val.diagnostic_products

Small non-cosmological diagnostic products shared by compute and plot steps.

footprint_counts(ra, dec, nside_coverage=32, nside_sparse=2048)[source]

Bin coordinates once, using a finite HealSparse sentinel for valid pixels.

save_footprint(count_map, path)[source]

Store occupied nested pixels, counts and both HealSparse resolutions.

A sparse NPZ avoids writing the plotter’s NaN sentinel to a FITS header (CFITSIO cannot encode it). No per-object coordinates are retained.

load_footprint(path)[source]

Reconstruct the sparse map from occupied pixels, without a catalogue.