Skip to content

Run 2: publish the survey as order-5 HATS pixels, uploaded once per pixel, replacing latest/ and snapshots #987

Open
1 of 1 issue completed

Description

@cailmdaley

Proposal for run 2: replace the latest/ merge and the VOSpace snapshots with per-pixel HATS publication. Each cluster builds its order-5 pixels from finished tiles and uploads each one once, and the catalogue's pixel list is rebuilt from the VOSpace listing.

This is the publishing half of the run-2 design; #986 covers the tile list, ownership and planning. If adopted, it replaces the merged HDF5 catalogue, its 8–20 h rebuilds, the snapshot uploads and the survey-wide publisher that #982 proposes to port.

Building a pixel. A pixel is built when every tile and exposure on its fixed list (#986) has finished. A tile that failed after its retries contributes no rows, as a failed unit is kept out of the catalogue today. The builder reads the finished tile catalogues on the list, keeps the rows whose own position (_healpix_29 >> 48) falls in the pixel, and writes one Parquet file. Rows are placed by their own position, never by their tile's centre: placing whole tiles would put 13.6% of rows outside their pixel, and cone searches would silently miss them. Tile overlaps are kept, as in run 1.

Products, under vos:cfis/weak_lensing/ShapePipe/v2.0/:

  • the galaxy catalogue and the PSF-validation star catalogue, as HATS;
  • the coverage maps npoint, ntaken, nexp and nflagged (order 17), as HEALSparse, one file per order-5 pixel.

Each file records the ShapePipe commit that made it, and the path and checksum of the UNIONS mask it was built against, in its metadata. The mask itself is independent of ShapePipe and is not copied. PSF model tarballs and tile working directories stay on the clusters.

Upload. The owning cluster uploads each pixel once and checks size and MD5 against CADC; an uploaded pixel is never overwritten. properties (without row counts) and dataset/_common_metadata are written once. partition_info.csv is the only file that changes: a cluster rebuilds it from the VOSpace listing after an upload, so it never names a missing file, and if two clusters race, the next rebuild corrects it. _metadata is omitted. lsdb 0.11.1 reads such a catalogue correctly; len(cat) is unknown while the catalogue grows.

No versioning layer. The catalogue is v2.0/, and run 1 is converted into it. Keeping the code consistent across the two clusters is the operator's job, and the commit recorded in each file shows any mismatch.

Acceptance.

  • A small two-cluster patch with the seam inside it publishes every pixel once, run through the normal launcher on Nibi and Fir.
  • Its pixels match the source tile rows value for value, and its maps match the run-1 merged maps on the same patch.
  • A second upload of a published pixel is refused.
  • lsdb.read_hats and a cone search work over authenticated HTTPS while pixels are being added.
  • Margin catalogues (for crossmatch) are built once a pixel's neighbours are published, outside this path.

Prototype. Four pixels were published to vos:cfis/weak_lensing/ShapePipe/v2.x/run2-proto-hats/ and read back with lsdb over HTTPS, with a 6.5 s cone search. Every value of all 191 galaxy and 22 star columns matched latest/. The area is not public, so readers need a CADC proxy certificate. CADC returns the wrong bytes for suffix byte ranges (bytes=-8); fsspec uses explicit ranges and is not affected.

— Claude (Opus 5.5) on behalf of Cail

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. changed the title [-]Run 2: publish the survey catalogue as HATS pixels from a per-pixel reducer and one indexer[/-] [+]Run 2: publish the survey as order-5 HATS pixels, uploaded once per pixel, replacing latest/ and snapshots[/+] on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions