# Auto-generated batch file Tue Oct 23 16:43:32 2012
#PBS -l nodes=1
#PBS -l walltime=48:00:00
#PBS -W umask=0022
#PBS -V
#PBS -j oe
cd $PBS_O_WORKDIR

#- Echo commands to make debugging easier
set -o verbose

#- The real work
setup idlspec2d v5_5_12
echo 'sdss_plate_sort,"spPlan2d-3673-55146.par"' | idl
echo 'sdss_plate_sort,"spPlan2d-3673-55151.par"' | idl
echo 'sdss_plate_sort,"spPlan2d-3673-55152.par"' | idl
echo 'spreduce2d,"spPlan2d-3673-55146.par"' | idl
echo 'spreduce2d,"spPlan2d-3673-55151.par"' | idl
echo 'spreduce2d,"spPlan2d-3673-55152.par"' | idl
echo 'spcombine_v5,"spPlancomb-3673-55152.par"' | idl
setup idlspec2d v5_5_12
echo 'spreduce1d,"spPlate-3673-55152.fits",run1d="v5_5_12"' | idl
