Skip to content

Run 2: plan tiles by HEALPix ownership with closure, from one rule-defined tile list #986

Open

Description

@cailmdaley

Proposal for run 2: plan the campaign by HEALPix ownership, so each cluster processes every tile and exposure that touches its own catalogue pixels, from one rule-defined tile list.

Run 2 publishes the survey catalogue as HATS (HEALPix-partitioned Parquet, read with lsdb) at a fixed order 5: about 1,850 pixels of about 400k rows each. Each cluster builds and uploads its own pixels; the publishing side is #987. This issue covers how tiles are planned so that every pixel can be built on one cluster.

Tile list by rule. For tile x.y, with dec = y/2 − 90, the run-2 list excludes a tile when y ≥ 345 (Dec ≥ 82.5°, where the tile image does not cover the tile) or x ≥ 720 cos(dec) (nominal centre at or past RA 360°, sky already held by the tiles near RA 0°). On the original 23,114-tile DR6 list this removes the 181 high-Dec and 32 dateline tiles of #969, plus 16 dateline tiles that straddle RA 360° and were not on the #900 list. Run 1 processed those 16, and they put 576k duplicate rows into the merged catalogue at the wrap. 22,885 tiles remain. The rule lives in one place and every planner reads the resulting list, so no per-cluster skip file is needed.

Ownership. Nibi and Fir own order-2 HEALPix cells, and so own every order-5 pixel inside them. Nibi starts with the equatorial block (RA 290–70°, Dec < 42°), which borders nothing, and grows into the northern block from RA ≈ 270°; Fir grows from RA ≈ 100°. When a cluster's queue runs low, it claims the unclaimed cell next to its region and nearest its seed. Claims are one git-tracked file, and a rejected push acts as the lock.

Closure. A cluster processes every tile whose footprint touches one of its pixels, and every exposure those tiles use. Tiles along the one seam therefore run on both clusters: 243 tile runs (1.06%, about 2,600 core-h, estimated at 10.7 core-h per tile) for a 40:60 starting split. In exchange, no rows move between clusters and no pixel waits for the other cluster. Run 1 already mixes Nibi and Fir results between neighbouring tiles across the sky.

Pixel lists. Before processing, each pixel gets a fixed list of the tiles whose 0.4° enclosing cap touches it (the largest row offset from a tile centre measured on real tiles is 0.365°), and of the exposures whose pointing caps touch it. #987 builds a pixel when everything on its list has finished.

Star rows. The star catalogue rows gain the exposure ID (today only the HDF5 dataset name holds it), and keep CCD_NB and a per-CCD row ordinal, so each measurement has a unique key in a pixel file.

Acceptance.

  • The rule reproduces exactly the 229 excluded tile IDs, and no planned batch contains one.
  • Every order-5 pixel touched by an excluded dateline tile is also touched by an included tile, so no sky is lost.
  • On a test patch, every row of every tile lies within 0.4° of its tile centre.
  • (EXP_ID, CCD_NB, ordinal) is unique over the star rows of the patch.

The design and its scientific contracts (decisions for ShapePipe's astra.yaml and @sc constraints) are drafted; an implementation PR will follow.

— Claude (Opus 5.5) on behalf of Cail

Activity

  1. changed the title [-]Run 2: tile and exposure rules emit HATS pixel fragments with completion receipts[/-] [+]Run 2: plan tiles by HEALPix ownership with closure, from one rule-defined tile list[/+] 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