Changeset 34870 for trunk/tools/run.relastro
- Timestamp:
- Dec 21, 2012, 2:59:50 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/tools/run.relastro (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/run.relastro
r34869 r34870 1 1 #!/bin/csh -f 2 2 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 3 if ($#argv != 5) then 4 echo "USAGE: run.relastro (catdir) (Rmin) (Rmax) (Dmin) (Dmax)" 5 exit 2 22 6 endif 23 7 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" 8 set REALRUN = 0 37 9 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 10 set catdir = $argv[1] 11 set ra_min = $argv[2] 12 set ra_max = $argv[3] 13 set dec_min = $argv[4] 14 set dec_max = $argv[5] 48 15 16 alias 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 49 22 # try 1000 meas per deg^2, but if memory if available, go to more 50 if ( 0) then23 if (1) then 51 24 set options = "-update-chips" 52 25 set options = "$options -D RELASTRO_SRC_MEAS_TOOFEW 1" … … 56 29 set options = "$options -reset" 57 30 set options = "$options -update" 58 set options = "$options -parallel"59 31 set options = "$options -max-density 3000" 60 32 set options = "$options -threads 4" 61 33 set options = "$options -v" 62 34 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" 74 37 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 91 45 endif 92 46 93 echo -n "--- done with relastro ---"; date 47 # -update-objects : determine improved positions, including parallax and proper motions 48 if (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 65 endif 66 67 echo -n "--- done with relastro --- "; date
Note:
See TracChangeset
for help on using the changeset viewer.
