IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6022


Ignore:
Timestamp:
Jan 16, 2006, 6:12:57 PM (21 years ago)
Author:
eugene
Message:

updated tables and functions

Location:
trunk
Files:
8 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/dettools/doc/dettools.txt

    r5881 r6022  
    11mkdetrend tools
    22
    3 dettool -define [options]
     3dettools -define [options]
    44 * define a new detRun, specifying the constraints, and adding it to
    55 the run table.  if the detRun ID already exists, creates a new
     
    2222  (-exptime is mandatory for dark)
    2323
    24 dettool -getinput
     24dettools -getinput
    2525 * select the input matching a given detRun.  selects the input
    2626 exposures and the input files.
     
    2929 stack of input exposures
    3030
    31 dettool -select raw [-state state] [-outmode mode]
     31dettools -pending raw [-state state] [-outmode mode]
    3232 * select the unprocessed input infiles
    3333 - output of this program is used by pantasks to schedule the ppImage
    3434 run on each image
    3535
    36 dettool -select stack [-state state] [-outmode mode]
     36dettools -pending stack [-state state] [-outmode mode]
    3737 * select the files to be stacked for a given detRun, if exposures are ready
    3838 - output of this program is used by ppMerge to build a master stack
    3939
    40 dettool -select rawresid [-state state]
    41  * select the residual imfiles to be generated
    42  - output of this program is used for another ppImage run
    43 
    44 dettool -update raw
     40dettools -update raw
    4541 * select the raw input exposures, count processed imfiles, update if done
    4642
    47 dettool -update resid
     43dettools -update resid
    4844 * select the resid exposures, count processed resid imfiles, update if done
    4945 - for a given resid exposure, compile the results from the stacks for
    5046 each chip and renormalize the output files as needed.
    5147
    52 dettool -select norm
     48dettools -pending norm
    5349 * select the master detrend frames & imfiles to be normalized
    5450
    55 dettool -resid
     51dettools -resid
    5652 * construct the resid exposures and imfiles given
    5753
    58 dettool -assess
     54dettools -assess
    5955 * for a given master detrend frame, compile the results from the
    6056 residual exposures and assess the validity of the input exposures and of
  • trunk/dettools/src/dettools.c

    r5881 r6022  
    1 # include "p2search.h"
     1# include "dettools.h"
    22
    33int main (int argc, char **argv) {
     
    3939    if (config->mode == DET_MODE_UPDATE_RESID) {
    4040        exposures = detSelectResidUpdateExposures (config);
    41         detUpdateResdiExposures (config, exposures);
     41        detUpdateResidExposures (config, exposures);
    4242    }
    4343
  • trunk/dettools/src/dettools.h

    r5881 r6022  
    11# include <stdio.h>
    2 # include <strings.h>  // for strcasecmp
    3 # include <unistd.h>   // for unlink
     2# include <strings.h>
     3# include <unistd.h>
    44# include <pslib.h>
    5 # include <pmObjects.h>
    6 # include <pmPSF.h>
    7 # include <pmPSFtry.h>
    8 # include <pmModelGroup.h>
     5# include "metadata.h"
    96
    107typedef enum {
     
    5249} detConfig;
    5350
    54 // these structures should be defined using the mddb api tools
    55 // check definition in p2search.h
    56 typedef struct ppRawExposure;
    57 typedef struct ppRawImfile;
    58 
    59 // this structure should be defined using the mddb api tools
    60 typedef struct {
    61     char expID[32];                     // free-form exposure ID string
    62     char class;                         // class of file: fpa (0), chip (1), cell (2), readout (3)?
    63     int Nclass;                         // number of files of this class
    64     int Ndone;                          // number of files of this class
    65     char P1version;
    66     char P2version;
    67     char state;
    68 } detInputExposure;
    69 
    70 // this structure should be defined using the mddb api tools
    71 typedef struct {
    72     char expID[32];                     // free-form exposure ID string
    73     char P2version;
    74     char class;                         // class of file: fpa (0), chip (1), cell (2), readout (3)?
    75     char classID[32];                   // identifier for class (chip00, cell00, etc)
    76     char urlroot[128];                  // locator for file (neb / file)
    77     char input[16];                     // extension for input image
    78     char output[16];                    // extension for output image
    79     char log[16];                       // extension for log file
    80     char smf[16];                       // extension for object table
    81     char state;                         // current P2 state
    82 } detInputImfile;
    83 
    84 // this structure should be defined using the mddb api tools
    85 typedef struct {
    86     a detID;
    87     a version;
    88     a iteration;
    89     a type;
    90     a camera;
    91     a filter;
    92     a class;
    93     int nInput;
    94     int nImfiles;
    95     detState state;
    96     float stats;
    97 } detMasterExposure;
    98 
    99 typedef struct {
    100     a detID;
    101     a version;
    102     a iteration;
    103     a classID;
    104     a stats;
    105     detState state;
    106 } detMasterImfile;
    107 
    108 typedef struct {
    109     a detID;
    110     a version;
    111     a state;
    112 
    113     int nIterations;                    // number of iterations STARTED
    114 
    115     detType type;
    116     char *camera;
    117     char *filter;
    118 
    119     bool groupSelect;
    120     char *groupID;
    121 
    122     bool timeSelect;
    123     psTime start;
    124     psTime stop;
    125 
    126     bool exptimeSelect;
    127     float exptimeMin;
    128     float exptimeMax;
    129 
    130     bool airmassSelect;
    131     float airmassMin;
    132     float airmassMax;
    133 } detMasterRun;
     51// these structures are defined in metadata.h using glueforge
     52// typedef struct DetrendInputExposure;
     53// typedef struct DetrendInputImfile;
     54// typedef struct DetrendMasterRun;
     55// typedef struct DetrendMasterExposure;
     56// typedef struct DetrendMasterImfile;
    13457
    13558typedef struct {
  • trunk/dettools/src/dettoolsConfig.c

    r5881 r6022  
    11# include "p2search.h"
    22
    3 bool p2searchConfig (psConfig *config, int argc, char **argv) {
     3bool dettoolsConfig (psConfig *config, int argc, char **argv) {
    44
    55    // Parse the configurations (re-org a la ppImage)
  • trunk/ippTools/doc/p0tools.txt

    r6015 r6022  
    22Phase 0 pipeline tools:
    33
    4 p0search -ready :
    5   * examine the new.imfiles,new.exposures tables and select exposures ready for analysi
     4p0search -pending :
     5  * examine the new.imfiles,new.exposures tables and select exposures ready for analysis
     6  * output is: (expID) (camera)
    67
    7 p0search -update :
    8   * select a specified image in the new.imfiles/new.exposures table
     8p0search -update (expID) (camera):
     9  * select a the corresponding images from the new.imfiles/new.exposures table
    910  * extract the specified header information
    1011  * search the summit metadata db tables
     
    1617    * add an entry to the p2.pending table (single)
    1718
    18 p0search -stats :
     19p0search -stats (expID) (camera):
    1920  * select a specified image in the new.imfiles/new.exposures table
    2021  * extract the specified header information
     
    2324  [-update without output to MDDB]
    2425
    25 p0search -mkraw :
     26p0search -mkraw (expID) (camera):
    2627  * select a specified image in the new.imfiles/new.exposures table
    2728  * extract the specified header information
     
    3334  * remove completed entries from the new.imfiles,new.exposure tables
    3435
     36** note : the division of -pending and -update allows separate processes
     37   to be examining the image headers and measuring some stats.  these
     38   jobs can be run via pcontrol to reduce the load on the PanTasks
     39   machines
     40
  • trunk/ippTools/doc/p1tools.txt

    r6015 r6022  
    22Phase 1 pipeline tools:
    33
    4 p1search -insert ? :
     4p1search -define [constraints]:
    55  * examine the raw.exposures tables and select exposures matching the given criteria
    66  * add entries which are allowed (mosaic) to the p1.pending table
     
    88p1search -pending :
    99  * examine the p1.pending table and select exposures waiting for p1
    10   * output the list for p1.tasks
     10  * output: lines consisting of:
     11    (expID) (p1version) (camera)
    1112
    12 p1search -update :
     13p1search -done :
    1314  * select completed entries in the p1.pending table
    1415  * move to the p1.done table
  • trunk/ippTools/doc/p3tools.txt

    r6015 r6022  
    22Phase 3 pipeline tools:
    33
    4 p3search -pending :
     4p3search -define :
    55  * examine the raw.exposures tables and select exposures matching the given criteria
    66  * add entries which are allowed (mosaic) to the p3.pending table
    77
    8 p3search -update :
    9   * select completed entries in the p1.pending table
    10   * move to the p1.done table
    11   * add new entry to the p2.pending tables
     8p3search -quick :
     9  * examine the raw.exposures tables and select exposures matching the given criteria
     10  * return list of entries for p3 processing
     11  * output: lines consisting of:
     12    (expID) (p3version) (camera)
     13
     14p3search -pending :
     15  * examine the p3.pending exposures table and select exposures waiting for p3
     16  * return list of entries for p3 processing
     17  * output: lines consisting of:
     18    (expID) (p3version) (camera)
     19
     20p3search -done :
     21  * select completed entries in the p3.pending table
     22  * move to the p3.done table
Note: See TracChangeset for help on using the changeset viewer.