Changeset 19381
- Timestamp:
- Sep 4, 2008, 2:30:59 PM (18 years ago)
- Location:
- trunk/ippTasks
- Files:
-
- 2 added
- 5 edited
-
Makefile.am (modified) (1 diff)
-
automate.pro (modified) (2 diffs)
-
notes.txt (modified) (1 diff)
-
simtest.basic.auto (added)
-
simtest.flatcorr.auto (modified) (3 diffs)
-
simtest.flatcorr.config (added)
-
simtest.pro (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/Makefile.am
r18405 r19381 23 23 chiphosts.manoa.config \ 24 24 chiphosts.mhpcc.config \ 25 simtest.basic.config \26 25 site.manoa.pro \ 27 26 site.mhpcc.pro \ 28 27 simtest.pro \ 29 simtest.auto \ 30 simtest.det \ 31 isp.det 28 simtest.basic.config \ 29 simtest.basic.auto \ 30 simtest.flatcorr.config \ 31 simtest.flatcorr.auto 32 32 33 33 pantasksdir = $(datadir)/pantasks -
trunk/ippTasks/automate.pro
r18791 r19381 23 23 24 24 macro automate.load 25 if ($0 != 3)26 echo "USAGE: automate.load (filename) ( dbname)"25 if ($0 != 4) 26 echo "USAGE: automate.load (filename) (camera) (dbname)" 27 27 break 28 28 end … … 32 32 33 33 ## interpolate standard values 34 queuesubstr tmp @DBNAME@ $2 34 queuesubstr tmp @CAMERA@ $2 35 queuesubstr tmp @DBNAME@ $3 35 36 queuesubstr tmp @CWD@ $cwd 36 37 -
trunk/ippTasks/notes.txt
r19331 r19381 34 34 * add an entry to ppMerge/src/ppMergeArguments.c 35 35 * add an entry to ippconfig/recipes/ppMerge.config 36 36 37 * add an entry to ippconfig/recipes/rejections.config 37 38 * add a section to ippconfig/recipes/reductionClasses.mdc 39 40 * ippScripts/scripts/detrend_norm_apply.pl : entry in DETTYPE table 41 * ippScripts/scripts/detrend_norm_calc.pl : entry in NORMALIZE table 42 * ippScripts/scripts/detrend_resid_imfile.pl : entry in DETRENDS table 43 * ippScripts/scripts/detrend_stack.pl : entry in FILERULES and STATRECIPES tables 44 * ippScripts/scripts/detrend_resid_imfile.pl : entry in DETRENDS table 45 38 46 * need a block in simtest.auto (or equiv) to check for when the chip processing / cam processing is complete 39 47 40 48 * need to modify the detselect -inst arguments in simtest.auto (use @INST@ or equiv) 49 50 * reductions currently being used: 51 ** CHIP -- chip-level analysis 52 ** JPEG.BIN1, JPEG.BIN2 -- camera jpeg terms 53 ** JPEG_BIN1_IMAGE_(dettype), JPEG_BIN2_IMAGE_(dettype) 54 ** JPEG_BIN1_RESID_(dettype), JPEG_BIN2_RESID_(dettype) 55 ** (dettype)_STACK, 56 ** (dettype)_PROCESS, 57 ** FAKEPHOT 41 58 42 59 2008.01.22 -
trunk/ippTasks/simtest.flatcorr.auto
r19330 r19381 5 5 # success on CHECK -> LAUNCH 6 6 # failure on BLOCK -> CHECK 7 8 # this is a simplified automate script which only models BIAS and FLAT. 9 # generate appropriate simulated data with the FLATCORR recipe 7 10 8 11 # wait until 20 bias frames are registered, then define a new bias run … … 22 25 block STR "dettool -runs -active -det_type DARK -dbname @DBNAME@" 23 26 END 24 27 25 28 # wait until the master dark frame is registered, then define a new shutter run 26 29 automate METADATA … … 31 34 END 32 35 33 # wait until the master shutterframe is registered, then define a new flat-r run36 # wait until the master bias frame is registered, then define a new flat-r run 34 37 automate METADATA 35 name STR FLAT-r38 name STR RAWFLAT-r 36 39 check STR "detselect -search -inst @CAMERA@ -det_type SHUTTER -dbname @DBNAME@" 37 launch STR "dettool -definebyquery -workdir file://@CWD@/detwork -inst @CAMERA@ -det_type FLAT -filter r -select_exp_type FLAT -select_filter r -dbname @DBNAME@"38 block STR "dettool -runs -active -det_type FLAT -filter r -dbname @DBNAME@"40 launch STR "dettool -definebyquery -workdir file://@CWD@/detwork -inst @CAMERA@ -det_type FLAT_RAW -filter r -select_exp_type FLAT -select_filter r -dbname @DBNAME@" 41 block STR "dettool -runs -active -det_type FLAT_RAW -filter r -dbname @DBNAME@" 39 42 END 40 43 41 # wait until the master shutterframe is registered, then define a new flat-i run44 # wait until the master bias frame is registered, then define a new flat-i run 42 45 automate METADATA 43 name STR FLAT-i46 name STR RAWFLAT-i 44 47 check STR "detselect -search -inst @CAMERA@ -det_type SHUTTER -dbname @DBNAME@" 45 launch STR "dettool -definebyquery -workdir file://@CWD@/detwork -inst @CAMERA@ -det_type FLAT -filter i -select_exp_type FLAT -select_filter i -dbname @DBNAME@"46 block STR "dettool -runs -active -det_type FLAT -filter i -dbname @DBNAME@"48 launch STR "dettool -definebyquery -workdir file://@CWD@/detwork -inst @CAMERA@ -det_type FLAT_RAW -filter i -select_exp_type FLAT -select_filter i -dbname @DBNAME@" 49 block STR "dettool -runs -active -det_type FLAT_RAW -filter i -dbname @DBNAME@" 47 50 END 48 51 49 # wait until the master flat-r frame is registered, then unblock the r-band data for chip-level processing 50 automate METADATA 51 name STR OBJECT-i 52 check STR "detselect -dbname @DBNAME@ -search -inst @CAMERA@ -filter i -det_type FLAT" 53 launch STR "chiptool -dbname @DBNAME@ -updaterun -inst @CAMERA@ -filter i -label wait -set_label proc" 54 block STR NONE 55 END 52 ## # wait until the master flat-r frame is registered, then unblock the r-band data for chip-level processing 53 ## automate METADATA 54 ## name STR OBJECT-i 55 ## check STR "detselect -dbname @DBNAME@ -search -inst @CAMERA@ -filter i -det_type FLAT" 56 ## launch STR "chiptool -dbname @DBNAME@ -updaterun -inst @CAMERA@ -filter i -label wait -set_label proc" 57 ## block STR NONE 58 ## END 59 ## 60 ## # wait until the master flat-i frame is registered, then unblock the i-band data for chip-level processing 61 ## automate METADATA 62 ## name STR OBJECT-r 63 ## check STR "detselect -dbname @DBNAME@ -search -inst @CAMERA@ -filter r -det_type FLAT" 64 ## launch STR "chiptool -dbname @DBNAME@ -updaterun -inst @CAMERA@ -filter r -label wait -set_label proc" 65 ## block STR NONE 66 ## END 67 ## 68 ## # wait until the r-band is done with camera, then define a new flat-correction run 69 ## automate METADATA 70 ## name STR FLATCORR-i 71 ## check STR "camtool -dbname @DBNAME@ -search -inst @CAMERA@ -filter r" 72 ## ncheck S32 8 73 ## launch STR "chiptool -dbname @DBNAME@ -updaterun -inst @CAMERA@ -filter i -label wait -set_label proc" 74 ## block STR NONE 75 ## END 56 76 57 # wait until the master flat-i frame is registered, then unblock the i-band data for chip-level processing 58 automate METADATA 59 name STR OBJECT-r 60 check STR "detselect -dbname @DBNAME@ -search -inst @CAMERA@ -filter r -det_type FLAT" 61 launch STR "chiptool -dbname @DBNAME@ -updaterun -inst @CAMERA@ -filter r -label wait -set_label proc" 62 block STR NONE 63 END 64 65 # wait until the r-band is done with camera, then define a new flat-correction run 66 automate METADATA 67 name STR FLATCORR-i 68 check STR "camtool -dbname @DBNAME@ -search -inst @CAMERA@ -filter r" 69 ncheck S32 8 70 launch STR "chiptool -dbname @DBNAME@ -updaterun -inst @CAMERA@ -filter i -label wait -set_label proc" 71 block STR NONE 72 END 73 77 ## flatcorr -definebyquery -dbname eamtest -filter r -set_workdir /data/alala.0/eugene/swtests/simtest/test.f1/work -set_reduction FLATCORR -set_dvodb /data/alala.0/eugene/swtests/simtest/test.f1/catdir.flatcorr -set_region 270.6,270.9:-23.8,-23.5 -set_filter r -
trunk/ippTasks/simtest.pro
r19266 r19381 1 1 ## simtest.pro : automatic full-suite simulated IPP test : -*- sh -*- 2 2 3 ## there are four features which define a simtest run: 4 ## the camera : any camera can be used, the sim... cameras are defined to be quick tests 5 ## the sequence : this file defines the set of observations generated 6 ## the auto : the automation file defines the sequence of analysis performed 7 ## the recipe : the ppsim recipe defines the features which are included in the generate data 8 9 ## these are not completely independent: a certain sequence may be 10 ## required to yield a sensible result for a specific auto, and a 11 ## specific recipe may also be needed 12 13 if ($?PPSIM_RECIPE == 0) 14 $PPSIM_RECIPE = default 15 end 16 if ($?SIMTEST_CAMERA == 0) 17 $SIMTEST_CAMERA = SIMTEST 18 end 19 if ($?SIMTEST_SEQUENCE == 0) 20 $SIMTEST_SEQUENCE = simtest.basic.config 21 end 22 if ($?SIMTEST_AUTO == 0) 23 $SIMTEST_AUTO = simtest.basic.auto 24 end 25 if ($?SIMTEST_THREADS == 0) 26 $SIMTEST_THREADS = 0 27 end 28 3 29 macro simtest 4 if ($0 != 6) 5 echo "USAGE: simtest (testroot) (dbname) (hostname) (threads) (init)" 6 echo " if (init) == 0, just run the analysis tasks" 7 echo " if (init) == 1, (re)create the database and (re)inject the images" 8 echo " if (init) == 2, restart completely from scratch" 30 if ($0 != 4) 31 echo "USAGE: simtest (dbname) (hostname) (init)" 32 echo " if (init) == run : just run the analysis tasks" 33 echo " if (init) == inject : (re)create the database and (re)inject the images" 34 echo " if (init) == new : restart completely from scratch" 35 echo "" 36 echo "there are additional options which may be specified by setting the following variable names:" 37 echo " PPSIM_RECIPE : define the recipe to use when generating the fake data" 38 echo " SIMTEST_CAMERA : define an alternate camera (otherwise uses entry in sequence file)" 39 echo " SIMTEST_SEQUENCE : define the set of observations generated (simtest.basic.config)" 40 echo " SIMTEST_AUTO : define the analysis steps to perform (simtest.auto)" 41 echo " SIMTEST_THREADS : set the number of threads for the processing node (0)" 9 42 break 10 43 end 11 44 12 $testroot = $1 13 $dbname = $2 14 $hostname = $3 15 $threads = $4 45 $dbname = $1 46 $hostname = $2 47 $init = $3 48 if (("$init" != "run") && ("$init" != "inject") && ("$init" != "new")) 49 echo "USAGE: simtest (dbname) (hostname) (init)" 50 echo " if (init) == run : just run the analysis tasks" 51 echo " if (init) == inject : (re)create the database and (re)inject the images" 52 echo " if (init) == new : restart completely from scratch" 53 break 54 end 16 55 17 if ( $5 > 0)56 if (("$init" == "new") || ("$init" == "new")) 18 57 # XXX this will fail and exit the script if the db does not exist or is old... 19 58 exec pxadmin -delete -dbname $dbname … … 22 61 exec pxadmin -create -dbname $dbname 23 62 24 if ( $5 == 2)63 if ("$init" == "new") 25 64 # the labels "wait" and "proc" are special names used in automate.pro 26 exec ppSimSequence $MODULES:0/$testroot.config $testroot.mkimages $testroot.inject -path raw -workdir work -dbname $dbname -label wait -dvodb DVO -tess_id TESS 27 # not ready for this yet 28 # -ppsim_recipe FLATCORR 65 66 $ppsim = "ppSimSequence $MODULES:0/$SIMTEST_SEQUENCE simtest.mkimages simtest.inject -path raw -workdir work -dbname $dbname -label wait -dvodb DVO -tess_id TESS" 67 if ("$PPSIM_RECIPE" != "default") 68 $ppsim = $ppsim -ppsim_recipe $PPSIM_RECIPE 69 end 70 $ppsim = $ppsim -camera $SIMTEST_CAMERA 29 71 30 exec source $testroot.mkimages72 exec $ppsim 31 73 74 exec source simtest.mkimages 75 76 ## XXX this will need to be optional as well 32 77 file TESS/Images.dat found 33 78 if ($found == 0) … … 37 82 38 83 exec chiptool -dbname $dbname -block -label wait 39 exec source $testroot.inject84 exec source simtest.inject 40 85 end 41 86 … … 45 90 module.tasks 46 91 47 controller host add $hostname 92 if ($SIMTEST_THREADS == 0) 93 controller host add $hostname 94 else 95 controller host add $hostname -threads $SIMTEST_THREADS 96 end 97 48 98 add.database $dbname 49 99 50 automate.load simtest.auto$dbname100 automate.load $SIMTEST_AUTO $SIMTEST_CAMERA $dbname 51 101 run 52 102 end 53 103 54 104 # XXX add a test function to pxadmin to check for db existence 105 106 ## currently defined options for sequence, etc: 107 108 # sequence: simtest.basic.config, simtest.flatcorr.config 109 # auto: simtest.basic.auto, simtest.flatcorr.auto 110 111 macro simtest.setup.flatcorr 112 $PPSIM_RECIPE = FLATCORR 113 $SIMTEST_SEQUENCE = simtest.flatcorr.config 114 $SIMTEST_AUTO = simtest.flatcorr.auto 115 end
Note:
See TracChangeset
for help on using the changeset viewer.
