Changeset 6122
- Timestamp:
- Jan 20, 2006, 11:18:03 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
chiptoolConfig.c (modified) (4 diffs)
-
p2searchRawFrames.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/chiptoolConfig.c
r6108 r6122 7 7 // Parse the configurations (re-org a la ppImage) 8 8 config->site = NULL; // Site configuration 9 config->camera = NULL; // Camera configuration 9 config->camera = NULL; // Camera configuration (unused) 10 10 config->recipe = NULL; // Recipe configuration 11 config->camera_name = NULL; // Camera name 12 11 13 if (! pmConfigRead(&config->site, &config->camera, &config->recipe, &argc, argv, RECIPE)) { 12 14 psErrorStackPrint(stderr, "Can't find site configuration!\n"); 13 15 exit(EXIT_FAILURE); 14 }15 16 bool status;17 config->camera_name = psMetadataLookupStr(&status, config->camera, "name");18 if (!config->camera_name) {19 // die20 16 } 21 17 … … 63 59 config->mode = P2_MODE_UPDATE; 64 60 } 65 61 66 62 // paul's argument parsing convention requires: -key value 67 63 psMetadataAddBool(config->arguments, PS_LIST_TAIL, "-quick", 0, "examine raw image table, write ppImage output", false); … … 70 66 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-update", 0, "update pending image table", ""); 71 67 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-time", 0, "define time range of interest", ""); 72 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "- camera", 0, "define camera of interest", "");68 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-inst", 0, "define camera of interest", ""); 73 69 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-filter", 0, "define filter of interest", ""); 74 70 … … 89 85 } 90 86 87 bool status; 88 config->camera_name = psMetadataLookupStr(&status, config->arguments, 89 "-inst"); 91 90 // add the input and output images to the arguments list 92 91 //psMetadataAddStr (config->arguments, PS_LIST_TAIL, "-output", 0, "Name of the output image", argv[1]); -
trunk/ippTools/src/p2searchRawFrames.c
r6090 r6122 9 9 // psMetadataAddS32 (where, PS_LIST_TAIL, "TYPE", 0, "==", P2_TYPE_OBJECT); 10 10 11 if (config->camera != NULL) { 12 psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, "==", config->camera_name); 11 if (config->camera_name != NULL) { 12 psMetadataAddStr(where, PS_LIST_TAIL, "camera", 0, "==", 13 config->camera_name); 13 14 } 14 15 if (config->filter != NULL) { 15 psMetadataAddStr(where, PS_LIST_TAIL, "filter", 0, "==", config->filter); 16 psMetadataAddStr(where, PS_LIST_TAIL, "filter", 0, "==", 17 config->filter); 16 18 } 17 19 // psMetadataConfig does not support times yet … … 27 29 psFree (where); 28 30 if (!exposures) { 29 psError(PS_ERR_UNKNOWN, false, " database access failed");31 psError(PS_ERR_UNKNOWN, false, "no rawScienceExp rows found"); 30 32 31 33 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
