Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nevencaplar/e32ebcc97f4c105cd9258333b962f12a to your computer and use it in GitHub Desktop.
#!/bin/bash
#
if [ $(uname -s) = Darwin ]; then
if [ -z $DYLD_LIBRARY_PATH ]; then
export DYLD_LIBRARY_PATH=$LSST_LIBRARY_PATH
fi
fi
set -evx
# Parse command-line arguments
BRANCH= # Branch to build
RERUN="neven_20200529_subtract" # Rerun name to use
TARGET="lam-processing/repo-09-neven" # Directory name to give data repo
CORES=20 # Number of cores to use
CLEANUP=false # Clean temporary products?
PREFIX=/tigress/hassans # Directory to work in
cd $PREFIX
TARGET="$(pwd)/$TARGET"
export OMP_NUM_THREADS=1
reduceExposure.py $TARGET --calib $TARGET/CALIB --rerun $RERUN --id visit=21604..21609 arm=r -c doMeasurePsf=True doSubtractSky2d=True doWriteCalexp=True subtractSky2d.useAllFibers=True measurePsf.targetSize=23 --clobber-config
#reduceExposure.py $TARGET --calib $TARGET/CALIB --rerun $RERUN --id visit=21604..21609 arm=r -c doWriteCalexp=True --clobber-config
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment