Skip to content

Download P3 tiles onto the Canada Alliance cluster (Nibi) #801

Description

@cailmdaley

Goal

Stage the P3 patch tiles (image + weight) on the new Canada Alliance cluster as a manual bulk download, reusing ShapePipe's on-the-fly retrieval mechanism rather than running it inside the pipeline.

How ShapePipe does it (what we're yoinking)

The get_images module (get_images.py ~L323–357) downloads tiles from CADC VOSpace via vcp (the vos python package, wrapped by cs_util.canfar.vosHandler), with configurable retries (default 3).

  • Remote paths: vos:cfis/tiles_DR6/CFIS.XXX.YYY.r.fits + vos:cfis/tiles_DR6/CFIS.XXX.YYY.r.weight.fits.fz
  • Auth: CADC proxy certificate at $HOME/.ssl/cadcproxy.pem, passed as --certfile=... (generate with cadc-get-cert)
  • Tile list: auxdir/CFIS/tiles_202106/tiles_P3.txt in the shapepipe repo — 1268 tiles, one XXX.YYY ID per line. (Newer list versions exist under auxdir/CFIS/tiles_202510/ and tiles_202604/ — confirm which vintage P3 definition we want before launching.)

Plan

Essentially a certificate + a loop:

for tile_id in $(cat tiles_P3.txt); do
  for f in "CFIS.${tile_id}.r.fits" "CFIS.${tile_id}.r.weight.fits.fz"; do
    vcp --certfile=$HOME/.ssl/cadcproxy.pem "vos:cfis/tiles_DR6/$f" "$DEST/$f"
  done
done

with retry-on-failure and a completeness check at the end (2536 files expected: 1268 × {image, weight}).

Tasks

  • vos package installed on the Alliance cluster (pip or container)
  • Valid CADC proxy cert on the cluster
  • Confirm tile-list vintage (202106 vs 202510/202604) and DR (tiles_DR6?)
  • Download script with retries + logging (adapt the loop above, or drive get_images_runner standalone via example/cfis/config_tile_Git_vos.ini as template)
  • Run + verify completeness (file count, sizes, fpack integrity spot-check)

~1268 tiles × O(0.5 GB each) → order 1–2 TB; pick the destination filesystem accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions