Changeset 10039
- Timestamp:
- Nov 16, 2006, 6:30:50 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
pxinject.c (modified) (1 diff)
-
pxinjectConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxinject.c
r9464 r10039 128 128 } 129 129 130 if (!newExpInsert(config->dbh, exp_tag, exp_id, camera, telescope, exp_type, imfiles)) { 130 psTime *dateobs = NULL; 131 { 132 psString dateobsStr = psMetadataLookupStr(&status, config->args, "-dateobs"); 133 if (!status) { 134 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -dateobs"); 135 return false; 136 } 137 dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC); 138 } 139 140 141 if (!newExpInsert(config->dbh, 142 (psU64)atoll(exp_tag), 143 exp_id, 144 camera, 145 telescope, 146 dateobs, 147 exp_type, 148 imfiles 149 ) 150 ) { 131 151 psError(PS_ERR_UNKNOWN, false, "database error"); 132 152 return false; -
trunk/ippTools/src/pxinjectConfig.c
r9392 r10039 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); 52 54 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-exp_type", 0, 53 55 "define the type of exposure (required)", NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
