- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/psModules
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/psModules merged eligible /branches/eam_branches/stackphot.20100406/psModules 27623-27653 /branches/pap_delete/psModules 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/psModules/src/concepts/pmConceptsAverage.c
r22706 r27840 36 36 37 37 double time = 0.0; // Time of observation 38 double zp = 0.0; // Zero point 38 39 psTimeType timeSys = 0; // Time system 39 40 char *filter = NULL; // Filter … … 63 64 psTimeConvert(fpaTime, PS_TIME_TAI); 64 65 time += psTimeToMJD(fpaTime); 66 67 zp += psMetadataLookupF32(NULL, fpa->concepts, "FPA.ZP"); 68 65 69 if (num == 1) { 66 70 timeSys = psMetadataLookupS32(NULL, fpa->concepts, "FPA.TIMESYS"); … … 85 89 86 90 time /= (double)num; 91 zp /= (double)num; 87 92 88 93 MD_UPDATE(target->concepts, "FPA.TIMESYS", S32, timeSys); … … 92 97 MD_UPDATE_STR(target->concepts, "FPA.INSTRUMENT", instrument); 93 98 MD_UPDATE_STR(target->concepts, "FPA.DETECTOR", detector); 99 MD_UPDATE(target->concepts, "FPA.ZP", F32, zp); 94 100 95 101 // FPA.TIME needs special care … … 278 284 279 285 float temp = 0.0; // Temperature 286 float seeing = 0.0; // Seeing FWHM 280 287 int x0 = 0, y0 = 0; // Offset 281 288 int xParity = 0, yParity = 0; // Parity … … 291 298 } 292 299 temp += psMetadataLookupF32(NULL, chip->concepts, "CHIP.TEMP"); 300 seeing += psMetadataLookupF32(NULL, chip->concepts, "CHIP.SEEING"); 293 301 if (nChips == 0) { 294 302 xSize = psMetadataLookupS32(NULL, chip->concepts, "CHIP.XSIZE"); … … 335 343 336 344 temp /= (float)nChips; 345 seeing /= (float)nChips; 337 346 338 347 MD_UPDATE(target->concepts, "CHIP.TEMP", F32, temp); 348 MD_UPDATE(target->concepts, "CHIP.SEEING", F32, seeing); 339 349 if (same) { 340 350 MD_UPDATE(target->concepts, "CHIP.X0", S32, x0);
Note:
See TracChangeset
for help on using the changeset viewer.
