Changeset 11142 for trunk/ippTools/src/pxinject.c
- Timestamp:
- Jan 18, 2007, 2:34:52 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxinject.c (modified) (3 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
Note:
See TracChangeset
for help on using the changeset viewer.
