Changeset 6150
- Timestamp:
- Jan 21, 2006, 5:35:57 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 4 edited
-
chiptool.c (modified) (1 diff)
-
chiptoolConfig.c (modified) (8 diffs)
-
p2searchRawFrames.c (modified) (1 diff)
-
pxtools.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptool.c
r6139 r6150 154 154 static bool doneMode(p2Config *config) 155 155 { 156 // get exp_id/class/class_id/url from the CLI 157 // add the completed imfile to the p2DoneImfile tables 158 // remove corresponding entries from the p2PendingImfile table 159 // check to see if any p2PendingExps have no associated p2PendingImfiles 160 // if so move the p2PendingExp(s) to p2DoneExp 161 156 162 psArray *pendingFrames = p2searchPendingFrames(config); 157 163 if (!pendingFrames) { -
trunk/ippTools/src/chiptoolConfig.c
r6133 r6150 1 1 #include <pmConfig.h> 2 2 3 # include "p2tools.h"3 #include "p2tools.h" 4 4 5 bool p2searchConfig (p2Config *config, int argc, char **argv) {5 bool p2searchConfig(p2Config *config, int argc, char **argv) { 6 6 PS_ASSERT_PTR_NON_NULL(config, false); 7 7 … … 11 11 config->recipe = NULL; // Recipe configuration 12 12 config->camera_name = NULL; // Camera name 13 config->filter = NULL; // Filter name 13 14 14 15 if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) { … … 46 47 config->mode = P2_MODE_PENDING; 47 48 } 49 /* 48 50 if ((N = psArgumentGet (argc, argv, "-update"))) { 49 51 psArgumentRemove (N, &argc, argv); … … 53 55 config->mode = P2_MODE_UPDATE; 54 56 } 57 */ 55 58 if ((N = psArgumentGet (argc, argv, "-done"))) { 56 59 psArgumentRemove (N, &argc, argv); … … 58 61 psAbort (argv[0], "only one mode selection is allowed"); 59 62 } 60 config->mode = P2_MODE_ UPDATE;63 config->mode = P2_MODE_DONE; 61 64 } 62 65 … … 65 68 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-define", 0, "examine raw image table, add to pending image table", ""); 66 69 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-pending", 0, "examine pending image table, write ppImage output", ""); 67 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-update", 0, "update pending image table", ""); 68 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-time", 0, "define time range of interest", ""); 70 // psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-update", 0, "update pending image table", ""); 71 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-done", 0, "mov image from pending to done table", ""); 72 // psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-time", 0, "define time range of interest", ""); 69 73 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-inst", 0, "define camera of interest", ""); 70 74 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-filter", 0, "define filter of interest", ""); 75 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-exp_id", 0, "define exposure ID", ""); 76 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-class", 0, "define class", ""); 77 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-class_id", 0, "define class ID", ""); 78 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-url", 0, "define URL", ""); 71 79 72 80 if (config->mode == P2_MODE_NONE) { … … 80 88 printf("\nPan-STARRS Phase 2 Search Tool\n\n"); 81 89 printf("Usage: %s [mode] [options]\n\n", argv[0]); 82 printf(" [mode] : -quick | -define | -pending | - update\n\n");90 printf(" [mode] : -quick | -define | -pending | -donee\n\n"); 83 91 psArgumentHelp(config->arguments); 84 92 psFree(config->arguments); … … 89 97 config->camera_name = psMetadataLookupStr(&status, config->arguments, 90 98 "-inst"); 99 // XXX why is "" being returned when -inst is missing? 100 if (strcmp(config->camera_name, "") == 0) { 101 config->camera_name = NULL; 102 } 103 config->exp_id = psMetadataLookupStr(&status, config->arguments, "-exp_id"); 104 config->class = psMetadataLookupStr(&status, config->arguments, "-class"); 105 config->class_id = psMetadataLookupStr(&status, config->arguments, 106 "-class_id"); 107 config->url = psMetadataLookupStr(&status, config->arguments, "-url"); 108 91 109 // add the input and output images to the arguments list 92 110 //psMetadataAddStr (config->arguments, PS_LIST_TAIL, "-output", 0, "Name of the output image", argv[1]); -
trunk/ippTools/src/p2searchRawFrames.c
r6133 r6150 6 6 7 7 // build 'where' structure 8 psMetadata *where = psMetadataAlloc (); 8 psMetadata *where = NULL; 9 10 if (config->camera_name || config->filter) { 11 where = psMetadataAlloc(); 12 } 9 13 10 14 // psMetadataAddS32 (where, PS_LIST_TAIL, "TYPE", 0, "==", P2_TYPE_OBJECT); 11 15 16 config->camera_name = NULL; 12 17 if (config->camera_name != NULL) { 13 18 psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, "==", -
trunk/ippTools/src/pxtools.h
r6134 r6150 20 20 P2_MODE_DEFINE, // grab from raw, create pending 21 21 P2_MODE_PENDING, // grab from pending, output for ppImage 22 P2_MODE_UPDATE, // set the current state22 // P2_MODE_UPDATE, // set the current state 23 23 P2_MODE_DONE, // set the current state 24 24 P2_MODE_CREATE, // set the current state … … 40 40 psMetadata *recipe; 41 41 psMetadata *arguments; 42 char *exp_id; 43 char *class; 44 char *class_id; 45 char *url; 42 46 } p2Config; 43 47
Note:
See TracChangeset
for help on using the changeset viewer.
