hipscatalog_gen.pipeline.common.compute_and_write_densmaps

compute_and_write_densmaps(ddf_sel, ra_col, dec_col, level_limit, out_dir, diag_ctx, log_fn=None)[source]

Compute density maps for all depths and write them to disk.

Parameters:
  • ddf_sel (Any) – Dask-like collection with RA/DEC columns.

  • ra_col (str) – Name of the RA column (degrees).

  • dec_col (str) – Name of the DEC column (degrees).

  • level_limit (int) – Maximum HiPS order to compute.

  • out_dir (Path) – Output directory where FITS files are written.

  • diag_ctx – Diagnostics context factory (label -> context manager).

  • log_fn – Optional logging callback for progress updates.

Returns:

Mapping of depth -> numpy array with counts per HEALPix pixel.

Return type:

Dict[int, ndarray]