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.relastro

    r34869 r34870  
    11#!/bin/csh -f
    22
    3 set catdir_3pi = /data/ipp064.0/eugene/3pi.20111229/catdir.3pi
    4 
    5 # run update-objects on the whole sky
    6 if (1) then
    7   # for a test, only run -pm
    8   # set options = "-update-objects -pmpar"
    9   set options = "-update-objects -pm"
    10   set options = "$options -D PM_DT_MIN 1.0"
    11   set options = "$options -D PAR_FACTOR_MIN 0.25"
    12   set options = "$options -update"
    13   set options = "$options -parallel"
    14   set options = "$options -v"
    15 
    16   set region = "-region 0 360 -60 90"
    17  
    18   # run relastro -update-objects
    19   echo -n "--- starting relastro $catdir_3pi ---"; date
    20   echo relastro $options $region -D CATDIR $catdir_3pi
    21   relastro $options $region -D CATDIR $catdir_3pi
     3if ($#argv != 5) then
     4  echo "USAGE: run.relastro (catdir) (Rmin) (Rmax) (Dmin) (Dmax)"
     5  exit 2
    226endif
    237
    24 # run update-offsets for 300-335
    25 if (0) then
    26   set options = "-update-offsets"
    27   set options = "$options -D RELASTRO_SRC_MEAS_TOOFEW 1"
    28   set options = "$options -D RELASTRO_SIGMA_LIM 0.1"
    29   set options = "$options -nloop 6"
    30   set options = "$options -basic-image-search"
    31   set options = "$options -reset"
    32   set options = "$options -update"
    33   set options = "$options -parallel"
    34   set options = "$options -max-density 3000"
    35   set options = "$options -threads 4"
    36   set options = "$options -v"
     8set REALRUN = 0
    379
    38   set ra_min = 300
    39   set ra_max = $ra_min
    40   @ ra_max += 35
    41   set region = "-region $ra_min $ra_max -60 60"
    42  
    43   # run relastro -update-chips
    44   echo -n "--- starting relastro $catdir_3pi ---"; date
    45   echo relastro $options $region -D CATDIR $catdir_3pi
    46   relastro $options $region -D CATDIR $catdir_3pi
    47 endif
     10set  catdir = $argv[1]
     11set  ra_min = $argv[2]
     12set  ra_max = $argv[3]
     13set dec_min = $argv[4]
     14set dec_max = $argv[5]
    4815
     16alias run.relastro \
     17  'echo -n "--- starting relastro $catdir --- "; date; \
     18   echo          relastro $options $region -D CATDIR $catdir; \
     19   if ($REALRUN) relastro $options $region -D CATDIR $catdir'
     20
     21# -update-chips : determine improved astrometry calibrations
    4922# try 1000 meas per deg^2, but if memory if available, go to more
    50 if (0) then
     23if (1) then
    5124  set options = "-update-chips"
    5225  set options = "$options -D RELASTRO_SRC_MEAS_TOOFEW 1"
     
    5629  set options = "$options -reset"
    5730  set options = "$options -update"
    58   set options = "$options -parallel"
    5931  set options = "$options -max-density 3000"
    6032  set options = "$options -threads 4"
    6133  set options = "$options -v"
    6234
    63   # set ra_min = 0
    64   # set ra_min = 150
    65   set ra_min = 300
    66   while ($ra_min < 360)
    67     set ra_max = $ra_min
    68     @ ra_max += 35
    69     set region = "-region $ra_min $ra_max -60 60"
    70  
    71     # test region (SDSS)
    72     # set region = "-region 120 140 0 20"
    73     # set region = "-region 180 240 10 50"
     35  # enable parallel operations for parallel databases
     36  # set options = "$options -parallel"
    7437
    75     # run relastro -update-chips
    76     echo -n "--- starting relastro $catdir_3pi ---"; date
    77     echo relastro $options $region -D CATDIR $catdir_3pi
    78     relastro $options $region -D CATDIR $catdir_3pi
    79 
    80     @ ra_min += 30
    81     # exit
    82   end
    83 
    84   # pole region
    85   set region = "-region 0 360 55 90"
    86 
    87   # run relastro -update-chips
    88   echo -n "--- starting relastro $catdir_3pi ---"; date
    89   echo relastro $options $region -D CATDIR $catdir_3pi
    90   relastro $options $region -D CATDIR $catdir_3pi
     38  set region = "-region $ra_min $ra_max $dec_min $dec_max"
     39  run.relastro
     40  if ($status) then
     41    echo "ERROR : failure running relastro"
     42    echo -n "--- done with relastro --- "; date
     43    exit 1
     44  endif
    9145endif
    9246
    93 echo -n "--- done with relastro ---"; date
     47# -update-objects : determine improved positions, including parallax and proper motions
     48if (1) then
     49  set options = "-update-objects -pmpar"
     50  set options = "$options -D PM_DT_MIN 1.0"
     51  set options = "$options -D PAR_FACTOR_MIN 0.25"
     52  set options = "$options -update"
     53  set options = "$options -v"
     54
     55  # enable parallel operations for parallel databases
     56  # set options = "$options -parallel"
     57
     58  set region = "-region $ra_min $ra_max $dec_min $dec_max"
     59  run.relastro
     60  if ($status) then
     61    echo "ERROR : failure running relastro"
     62    echo -n "--- done with relastro --- "; date
     63    exit 1
     64  endif
     65endif
     66
     67echo -n "--- done with relastro --- "; date
Note: See TracChangeset for help on using the changeset viewer.