Changeset 23197 for branches/cnb_branches/cnb_branch_20090215/psModules/src/concepts/pmConceptsAverage.c
- Timestamp:
- Mar 5, 2009, 11:13:29 AM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090215
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psModules/src/concepts/pmConceptsAverage.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090215
-
branches/cnb_branches/cnb_branch_20090215/psModules/src/concepts/pmConceptsAverage.c
r20597 r23197 61 61 62 62 psTime *fpaTime = psMetadataLookupPtr(NULL, fpa->concepts, "FPA.TIME"); 63 psTimeConvert(fpaTime, PS_TIME_TAI); 63 64 time += psTimeToMJD(fpaTime); 64 65 if (num == 1) { … … 96 97 psMetadataItem *timeItem = psMetadataLookup(target->concepts, "FPA.TIME"); 97 98 psFree(timeItem->data.V); 98 timeItem->data.V = psTimeFromMJD(time); 99 psTime *new = psTimeFromMJD(time); 100 psTimeConvert(new, timeSys); 101 timeItem->data.V = new; 99 102 } 100 103 … … 115 118 } 116 119 117 float value = psMetadataLookupF32(&status, cell->concepts, name);118 if (!status) continue;119 if (!isfinite(value)) continue;120 float value = psMetadataLookupF32(&status, cell->concepts, name); 121 if (!status) continue; 122 if (!isfinite(value)) continue; 120 123 121 124 sum += value; … … 246 249 psMetadataItem *timeItem = psMetadataLookup(target->concepts, "CELL.TIME"); 247 250 psFree(timeItem->data.V); 248 timeItem->data.V = psTimeFromMJD(time); 251 psTime *new = psTimeFromMJD(time); 252 psTimeConvert(new, timeSys); 253 timeItem->data.V = new; 249 254 } 250 255
Note:
See TracChangeset
for help on using the changeset viewer.
