IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 27, 2013, 5:58:25 AM (14 years ago)
Author:
eugene
Message:

enable test mode from command-line (-test, after jython module); add parallel dvo option; make database selection more consistent and variable on test/not-test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/test/mkgpc1data.dvo

    r35051 r35063  
    44
    55if (not($?VERBOSE)) set VERBOSE = 0
     6if (not($?PARALLEL)) set PARALLEL = 0
    67
    78## this script must be run in this directory, output data goes to 'testdata'
     
    199200  end
    200201
     202  if ($PARALLEL)
     203    $hostname = `hostname`
     204    exec rm -f $catdir/HostTable.dat
     205    output $catdir/HostTable.dat
     206    echo "# ID Hostname Catdir"
     207    echo " 1 $hostname $catdir.p1"
     208    echo " 2 $hostname $catdir.p2"
     209    echo " 3 $hostname $catdir.p3"
     210    output stdout
     211    exec dvodist -out $catdir
     212  end
     213
    201214  # for i 0 $offset:n
    202215  #   tapOK {abs(Mcal[$i] - Mcal[0] - $offset:$i) < 0.001} "Mcal $i"
     
    239252
    240253    exec addstar -D CATDIR $catdir -D CAMERA simtest $cmffile -D CATFORMAT $2 -quick-airmass
     254  end
     255
     256  if ($PARALLEL)
     257    $hostname = `hostname`
     258    exec rm -f $catdir/HostTable.dat
     259    output $catdir/HostTable.dat
     260    echo "# ID Hostname Catdir"
     261    echo " 1 $hostname $catdir.p1"
     262    echo " 2 $hostname $catdir.p2"
     263    echo " 3 $hostname $catdir.p3"
     264    output stdout
     265    exec dvodist -out $catdir
    241266  end
    242267
     
    358383
    359384if ($SCRIPT)
     385  if ($argv:n > 0)
     386    if ("$argv:0" == "-parallel")
     387      $PARALLEL = 1
     388    end
     389  end
    360390  mkfull
    361391  exit 0
Note: See TracChangeset for help on using the changeset viewer.