Pipeline Installation

Install Pipeline


The basic information of the PFS 2D DRP for this section includes:

  1. LSST version: v30 (as of 2026/03/15, started from w.2026.07)
  2. pfs_pipe2d branch: the latest weekly release

Step 1: Fetch pfs_pipe2d Gen3:

cd $WORKDIR/$(whoami)/
git clone http://github.com/Subaru-PFS/pfs_pipe2d

Step 2: Check out the latest version:

cd pfs_pipe2d
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)

Step 3: Create the target folder and start the installation:

mkdir -p $WORKDIR/$(whoami)/pfs/stack_30
cd $WORKDIR/$(whoami)/pfs_pipe2d/bin
./install_pfs.sh -t current $WORKDIR/$(whoami)/pfs/stack_30

Install Flux Model Data


Step 1: Set up the pipe2d environment:

Source the appropriate loadLSST.* script for your shell.

source $WORKDIR/$(whoami)/packages/stack_30/loadLSST.bash
setup pfs_pipe2d

Step 2: Fetch the flux model data:

mkdir -p $WORKDIR/$(whoami)/source/
cd $WORKDIR/$(whoami)/source/
wget https://hscdata.mtk.nao.ac.jp/hsc_bin_dist/pfs/fluxmodeldata-ambre-20230608.tar.gz
tar xzf fluxmodeldata-ambre-20230608.tar.gz -C .

Step 3: Start the installation:

cd $WORKDIR/$(whoami)/source/fluxmodeldata-ambre-20230608
./install.py --prefix=$WORKDIR/$(whoami)/packages/

Then, declare the fluxmodeldata package to eups:

eups declare fluxmodeldata 20230608-full -t current -r /path/to/fluxmodeldata

(Optional) Individual Users: Install drp_pfs_data Package


Note

We expect that this requirement will be removed soon. It's only necessary if you will set up your own repository, specifically, for installing the "curated calibs".

If the PFS pipeline was installed for all users on a server in a public directory, e.g., $WORKDIR/pfs/, then for individual users, a local version of drp_pfs_data package -- other than the one included in the pfs_pipe2d installation above -- is needed.

We can install the local drp_pfs_data package as follows:

cd $WORKDIR/$(whoami)/packages/
git clone https://github.com/Subaru-PFS/drp_pfs_data.git --single-branch
cd drp_pfs_data
git fetch --tags
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)