IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 21, 2012, 2:59:50 PM (14 years ago)
Author:
eugene
Message:

adding run.relphot, run.relastro, run.setphot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/run.setphot

    r34869 r34870  
    11#!/bin/csh -f
    22
    3 set ubercal = ucalqv_noref.fits
    4 set catdir_3pi = ../3pi.20111229/catdir.3pi
     3if ($#argv != 1) then
     4  echo "USAGE: run.setphot (catdir)"
     5  exit 2
     6endif
    57
    6 echo -n "--- starting setphot $catdir_3pi ---"; date
     8set REALRUN = 0
     9
     10set  catdir = $argv[1]
     11set ubercal = ~ipp/ucalqw_noref.fits
     12
     13alias run.setphot \
     14  'echo -n "--- starting setphot $catdir --- "; date; \
     15   echo          setphot $options -D CATDIR $catdir $ubercal; \
     16   if ($REALRUN) setphot $options -D CATDIR $catdir $ubercal'
     17
     18set options = ""
     19set options = "$options -update"
     20set options = "$options -ubercal"
     21set options = "$options -no-metadata"
     22
     23# activate parallel mode when catdir is parallel
     24# set options = "$options -parallel"
     25
     26# the new ubercal file includes Eddie's offsets relative to JT (so, no need to supply -zpt-offsets)
     27run.setphot
     28if ($status) then
     29  echo "failed setphot"
     30  echo -n "--- done with setphot ---"; date
     31  exit 1
     32endif
     33echo -n "--- done with setphot ---"; date
     34exit 0
     35
    736
    837# old command lines with zpt offsets
     
    1039# setphot -images-only -parallel -reset -zpt-offsets g,r,i,z,y -0.013,+0.012,+0.001,-0.016,-0.021 -update -ubercal -no-metadata -D CATDIR $catdir_3pi $ubercal
    1140
    12 # the new ubercal file includes Eddie's offsets relative to JT (so, no need to supply -zpt-offsets)
    13 echo setphot -parallel -update -ubercal -no-metadata -D CATDIR $catdir_3pi $ubercal
    14 setphot -parallel -update -ubercal -no-metadata -D CATDIR $catdir_3pi $ubercal
    15 if ($status) then
    16   echo "failed setphot"
    17 endif
    18 echo -n "--- done with setphot ---"; date
Note: See TracChangeset for help on using the changeset viewer.