IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19381


Ignore:
Timestamp:
Sep 4, 2008, 2:30:59 PM (18 years ago)
Author:
eugene
Message:

adding flatcorr simtest suites, mods to allow camera and sequence to be supplied by user

Location:
trunk/ippTasks
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/Makefile.am

    r18405 r19381  
    2323        chiphosts.manoa.config \
    2424        chiphosts.mhpcc.config \
    25         simtest.basic.config \
    2625        site.manoa.pro \
    2726        site.mhpcc.pro \
    2827        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
    3232
    3333pantasksdir = $(datadir)/pantasks
  • trunk/ippTasks/automate.pro

    r18791 r19381  
    2323
    2424macro 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)"
    2727    break
    2828  end
     
    3232
    3333  ## interpolate standard values
    34   queuesubstr tmp @DBNAME@ $2
     34  queuesubstr tmp @CAMERA@ $2
     35  queuesubstr tmp @DBNAME@ $3
    3536  queuesubstr tmp @CWD@ $cwd
    3637
  • trunk/ippTasks/notes.txt

    r19331 r19381  
    3434   * add an entry to ppMerge/src/ppMergeArguments.c
    3535   * add an entry to ippconfig/recipes/ppMerge.config
     36
    3637   * 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
    3846  * need a block in simtest.auto (or equiv) to check for when the chip processing / cam processing is complete
    3947
    4048  * 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
    4158
    42592008.01.22
  • trunk/ippTasks/simtest.flatcorr.auto

    r19330 r19381  
    55# success on CHECK -> LAUNCH
    66# 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
    710
    811# wait until 20 bias frames are registered, then define a new bias run
     
    2225  block      STR "dettool -runs -active -det_type DARK -dbname @DBNAME@"
    2326END
    24  
     27
    2528# wait until the master dark frame is registered, then define a new shutter run
    2629automate METADATA
     
    3134END
    3235
    33 # wait until the master shutter frame is registered, then define a new flat-r run
     36# wait until the master bias frame is registered, then define a new flat-r run
    3437automate METADATA
    35   name       STR FLAT-r
     38  name       STR RAWFLAT-r
    3639  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@"
    3942END
    4043
    41 # wait until the master shutter frame is registered, then define a new flat-i run
     44# wait until the master bias frame is registered, then define a new flat-i run
    4245automate METADATA
    43   name       STR FLAT-i
     46  name       STR RAWFLAT-i
    4447  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@"
    4750END
    4851
    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
    5676
    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  
    11## simtest.pro : automatic full-suite simulated IPP test : -*- sh -*-
    22
     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
     13if ($?PPSIM_RECIPE == 0)
     14  $PPSIM_RECIPE = default
     15end
     16if ($?SIMTEST_CAMERA == 0)
     17  $SIMTEST_CAMERA = SIMTEST
     18end
     19if ($?SIMTEST_SEQUENCE == 0)
     20  $SIMTEST_SEQUENCE = simtest.basic.config
     21end
     22if ($?SIMTEST_AUTO == 0)
     23  $SIMTEST_AUTO = simtest.basic.auto
     24end
     25if ($?SIMTEST_THREADS == 0)
     26  $SIMTEST_THREADS = 0
     27end
     28
    329macro 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)"
    942    break
    1043  end
    1144
    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   
    1655 
    17   if ($5 > 0)
     56  if (("$init" == "new") || ("$init" == "new")) 
    1857    # XXX this will fail and exit the script if the db does not exist or is old...
    1958    exec pxadmin -delete -dbname $dbname
     
    2261    exec pxadmin -create -dbname $dbname
    2362
    24     if ($5 == 2)
     63    if ("$init" == "new")
    2564      # 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
    2971
    30       exec source $testroot.mkimages
     72      exec $ppsim
    3173
     74      exec source simtest.mkimages
     75
     76      ## XXX this will need to be optional as well
    3277      file TESS/Images.dat found
    3378      if ($found == 0)
     
    3782
    3883    exec chiptool -dbname $dbname -block -label wait
    39     exec source $testroot.inject
     84    exec source simtest.inject
    4085  end
    4186
     
    4590  module.tasks
    4691
    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
    4898  add.database $dbname
    4999
    50   automate.load simtest.auto $dbname
     100  automate.load $SIMTEST_AUTO $SIMTEST_CAMERA $dbname
    51101  run
    52102end
    53103
    54104# 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
     111macro simtest.setup.flatcorr
     112  $PPSIM_RECIPE = FLATCORR
     113  $SIMTEST_SEQUENCE = simtest.flatcorr.config
     114  $SIMTEST_AUTO = simtest.flatcorr.auto
     115end
Note: See TracChangeset for help on using the changeset viewer.