Changeset 6022
- Timestamp:
- Jan 16, 2006, 6:12:57 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 8 added
- 7 edited
-
dettools/doc/det.define.sh (added)
-
dettools/doc/det.norm.sh (added)
-
dettools/doc/det.process.sh (added)
-
dettools/doc/det.resid.sh (added)
-
dettools/doc/det.stack.sh (added)
-
dettools/doc/dettools.txt (modified) (3 diffs)
-
dettools/src/dettools.c (modified) (2 diffs)
-
dettools/src/dettools.h (modified) (2 diffs)
-
dettools/src/dettoolsConfig.c (modified) (1 diff)
-
ippTools/doc/p0tools.sh (added)
-
ippTools/doc/p0tools.txt (modified) (4 diffs)
-
ippTools/doc/p1tools.sh (added)
-
ippTools/doc/p1tools.txt (modified) (2 diffs)
-
ippTools/doc/p3tools.sh (added)
-
ippTools/doc/p3tools.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dettools/doc/dettools.txt
r5881 r6022 1 1 mkdetrend tools 2 2 3 dettool -define [options]3 dettools -define [options] 4 4 * define a new detRun, specifying the constraints, and adding it to 5 5 the run table. if the detRun ID already exists, creates a new … … 22 22 (-exptime is mandatory for dark) 23 23 24 dettool -getinput24 dettools -getinput 25 25 * select the input matching a given detRun. selects the input 26 26 exposures and the input files. … … 29 29 stack of input exposures 30 30 31 dettool -selectraw [-state state] [-outmode mode]31 dettools -pending raw [-state state] [-outmode mode] 32 32 * select the unprocessed input infiles 33 33 - output of this program is used by pantasks to schedule the ppImage 34 34 run on each image 35 35 36 dettool -selectstack [-state state] [-outmode mode]36 dettools -pending stack [-state state] [-outmode mode] 37 37 * select the files to be stacked for a given detRun, if exposures are ready 38 38 - output of this program is used by ppMerge to build a master stack 39 39 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 40 dettools -update raw 45 41 * select the raw input exposures, count processed imfiles, update if done 46 42 47 dettool -update resid43 dettools -update resid 48 44 * select the resid exposures, count processed resid imfiles, update if done 49 45 - for a given resid exposure, compile the results from the stacks for 50 46 each chip and renormalize the output files as needed. 51 47 52 dettool -selectnorm48 dettools -pending norm 53 49 * select the master detrend frames & imfiles to be normalized 54 50 55 dettool -resid51 dettools -resid 56 52 * construct the resid exposures and imfiles given 57 53 58 dettool -assess54 dettools -assess 59 55 * for a given master detrend frame, compile the results from the 60 56 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" 2 2 3 3 int main (int argc, char **argv) { … … 39 39 if (config->mode == DET_MODE_UPDATE_RESID) { 40 40 exposures = detSelectResidUpdateExposures (config); 41 detUpdateRes diExposures (config, exposures);41 detUpdateResidExposures (config, exposures); 42 42 } 43 43 -
trunk/dettools/src/dettools.h
r5881 r6022 1 1 # include <stdio.h> 2 # include <strings.h> // for strcasecmp3 # include <unistd.h> // for unlink2 # include <strings.h> 3 # include <unistd.h> 4 4 # include <pslib.h> 5 # include <pmObjects.h> 6 # include <pmPSF.h> 7 # include <pmPSFtry.h> 8 # include <pmModelGroup.h> 5 # include "metadata.h" 9 6 10 7 typedef enum { … … 52 49 } detConfig; 53 50 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; 134 57 135 58 typedef struct { -
trunk/dettools/src/dettoolsConfig.c
r5881 r6022 1 1 # include "p2search.h" 2 2 3 bool p2searchConfig (psConfig *config, int argc, char **argv) {3 bool dettoolsConfig (psConfig *config, int argc, char **argv) { 4 4 5 5 // Parse the configurations (re-org a la ppImage) -
trunk/ippTools/doc/p0tools.txt
r6015 r6022 2 2 Phase 0 pipeline tools: 3 3 4 p0search -ready : 5 * examine the new.imfiles,new.exposures tables and select exposures ready for analysi 4 p0search -pending : 5 * examine the new.imfiles,new.exposures tables and select exposures ready for analysis 6 * output is: (expID) (camera) 6 7 7 p0search -update :8 * select a specified image inthe new.imfiles/new.exposures table8 p0search -update (expID) (camera): 9 * select a the corresponding images from the new.imfiles/new.exposures table 9 10 * extract the specified header information 10 11 * search the summit metadata db tables … … 16 17 * add an entry to the p2.pending table (single) 17 18 18 p0search -stats :19 p0search -stats (expID) (camera): 19 20 * select a specified image in the new.imfiles/new.exposures table 20 21 * extract the specified header information … … 23 24 [-update without output to MDDB] 24 25 25 p0search -mkraw :26 p0search -mkraw (expID) (camera): 26 27 * select a specified image in the new.imfiles/new.exposures table 27 28 * extract the specified header information … … 33 34 * remove completed entries from the new.imfiles,new.exposure tables 34 35 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 2 2 Phase 1 pipeline tools: 3 3 4 p1search - insert ?:4 p1search -define [constraints]: 5 5 * examine the raw.exposures tables and select exposures matching the given criteria 6 6 * add entries which are allowed (mosaic) to the p1.pending table … … 8 8 p1search -pending : 9 9 * 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) 11 12 12 p1search - update :13 p1search -done : 13 14 * select completed entries in the p1.pending table 14 15 * move to the p1.done table -
trunk/ippTools/doc/p3tools.txt
r6015 r6022 2 2 Phase 3 pipeline tools: 3 3 4 p3search - pending:4 p3search -define : 5 5 * examine the raw.exposures tables and select exposures matching the given criteria 6 6 * add entries which are allowed (mosaic) to the p3.pending table 7 7 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 8 p3search -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 14 p3search -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 20 p3search -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.
