IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 2 and Version 3 of SimtestNew


Ignore:
Timestamp:
Mar 2, 2009, 4:30:12 PM (17 years ago)
Author:
rodney
Comment:

updated to reflect 2008-09-04 changes in simtest.pro

Legend:

Unmodified
Added
Removed
Modified
  • SimtestNew

    v2 v3  
    1919pantasks: module simtest.pro
    2020pantasks: simtest
    21 USAGE: simtest (testroot) (dbname) (hostname) (init)
    22  if (init) == 0, just run the analysis tasks
    23  if (init) == 1, (re)create the database and (re)inject the images
    24  if (init) == 2, restart completely from scratch
    25 pantasks: simtest simtest.basic dbname computer 2
     21USAGE: simtest (dbname) (hostname) (init)
     22 if (init) == run    : just run the analysis tasks
     23 if (init) == inject : (re)create the database and (re)inject the images
     24 if (init) == new    : restart completely from scratch
     25
     26there are additional options which may be specified by setting the following variable names:
     27  PPSIM_RECIPE     : define the recipe to use when generating the fake data
     28  SIMTEST_CAMERA   : define an alternate camera (otherwise uses entry in sequence file)
     29  SIMTEST_SEQUENCE : define the set of observations generated (simtest.basic.config)
     30  SIMTEST_AUTO     : define the analysis steps to perform (simtest.auto)
     31  SIMTEST_THREADS  : set the number of threads for the processing node (0)
     32
     33the following macros can be used to set up specific simtest suites:
     34  simtest.setup.basic : run standard simtest suite
     35  simtest.setup.detverify : run detrend creation and detrend verification
     36  simtest.setup.flatcorr : run a flat-field correction demonstration
    2637}}}
    2738
    28 Here:
    29  * {{{simtest.basic}}} specifies the setup (see {{{ippTasks/simtest.basic.config}}}).
    30  *{{{dbname}}} is your database name: it must have already been set up (e.g., using {{{dbadmin}}}), though it needn't have been created (using {{{pxadmin}}}) since the {{{simtest}}} will do that, depending on the {{{init}}} value you give it.
    31  * {{{computer}}} is the name of a processing node: you must be able to {{{ssh}}} to this node without it prompting for a password.
    32  * The {{{init}}} value (in the example here, {{{2}}}) specifies what needs to be done.
     39 * {{{dbname}}} is your database name: it must have already been set up (e.g., using {{{dbadmin}}}), though it needn't have been created (using {{{pxadmin}}}) since the {{{simtest}}} will do that, depending on the {{{init}}} value you give it.
     40 * {{{hostname}}} is the name of a processing node: you must be able to {{{ssh}}} to this node without it prompting for a password.
    3341
     42So you can start by setting any of the variables like so:
     43
     44  {{{pantasks:  $SIMTEST_THREADS=2 }}}
     45
     46and then run the appropriate setup macro:
     47
     48  {{{pantasks: simtest.setup.basic}}}
     49
     50Then enter the appropriate usage command with the dbname, hostname and init option.
    3451After this, the database will be (re)created, simulated images will be generated, and the usual processing should automatically take place all the way through to the diff stage.  As usual, you can track how things go using the {{{status}}} command in pantasks, or using the IPP Monitor (if you've got it set up).
     52
     53
     54=== NOTES ===
     55
     56'''2008-09-04 : Gene's notes on this latest version of simtest.pro'''
     57
     58The idea is that there are various things which we would like to be
     59able to modify, theoretically independently.   The camera, sequence,
     60and auto should all be independent.  (The 'auto' is the analysis steps
     61performed as define in the file, eg, simtest.basic.auto or
     62simtest.flatcorr.auto; suggestions of a better name are welcome).  by
     63default, if you run:
     64
     65simtest (dbname) (hostname) new
     66
     67you will get the same simtest run we used to run.  Now, however, if
     68you set SIMTEST_CAMERA to MEGACAM (uppercase required), then you get
     69the same 'observations', but using megacam instead of simtest.
     70
     71I've also added a function in simtest.pro (simtest.setup.flatcorr) to
     72set these variables in an appropriate way for the flatcorr analysis.
     73