Changeset 11142 for trunk/ippTools/src
- Timestamp:
- Jan 18, 2007, 2:34:52 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
pxinject.c (modified) (3 diffs)
-
pxinjectConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxinject.c
r11138 r11142 100 100 return false; 101 101 } 102 psString exp_type = psMetadataLookupStr(&status, config->args, "-exp_type");103 if (!status) {104 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_type");105 return false;106 }107 if (!exp_type) {108 psError(PS_ERR_UNKNOWN, true, "-exp_type is required");109 return false;110 }111 102 psS32 imfiles = psMetadataLookupS32(&status, config->args, "-imfiles"); 112 103 if (!status) { … … 127 118 psError(PS_ERR_UNKNOWN, true, "-workdir is required"); 128 119 return false; 129 }130 131 psTime *dateobs = NULL;132 {133 psString dateobsStr = psMetadataLookupStr(&status, config->args, "-dateobs");134 if (!status) {135 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -dateobs");136 return false;137 }138 // pass through NULL as this is an optional field139 if (dateobsStr) {140 dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC);141 } else {142 dateobs = NULL;143 }144 145 120 } 146 121 … … 156 131 camera, 157 132 telescope, 158 dateobs,159 exp_type,160 133 imfiles, 161 134 workdir -
trunk/ippTools/src/pxinjectConfig.c
r11138 r11142 50 50 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-telescope", 0, 51 51 "define the telescope name (required)", NULL); 52 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-dateobs", 0,53 "define observation time", NULL);54 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-exp_type", 0,55 "define the type of exposure (required)", NULL);56 52 psMetadataAddS32(newExpArgs, PS_LIST_TAIL, "-imfiles", 0, 57 53 "define the number of imfiles in this exp (required)", 0); … … 157 153 } 158 154 addWhereStr(telescope); 159 addWhereStr(exp_type);160 155 { 161 156 int n = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
