Changeset 23626
- Timestamp:
- Mar 30, 2009, 10:34:42 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsStandard.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsStandard.c
r23625 r23626 1187 1187 const pmCell *cell) 1188 1188 { 1189 psString timeName = psStringCopy(concept->name); // Name of corresponding TIME concept 1190 psStringSubstitute(&timeName, "TIME", "TIMESYS"); 1191 1192 conceptTimeFormat timeFormat = conceptGetTimeFormat(timeName, cameraFormat); // Format for time 1193 psFree(timeName); 1194 1195 psTimeType timesys = concept->data.S32; // Time system 1196 1197 // JD and MJD are converted to TAI before writing 1198 switch (timeFormat.format) { 1199 case TIME_FORMAT_JD: 1200 case TIME_FORMAT_MJD: 1201 timesys = PS_TIME_TAI; 1202 break; 1203 default: 1204 break; 1205 } 1206 1189 1207 psString sys = NULL; // String to store 1190 switch ( concept->data.S32) {1208 switch (timesys) { 1191 1209 case PS_TIME_TAI: 1192 1210 sys = psStringCopy("TAI");
Note:
See TracChangeset
for help on using the changeset viewer.
