Changeset 14466
- Timestamp:
- Aug 10, 2007, 3:05:59 PM (19 years ago)
- Location:
- trunk/psModules/src/concepts
- Files:
-
- 2 edited
-
pmConceptsAverage.c (modified) (3 diffs)
-
pmConceptsAverage.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsAverage.c
r14465 r14466 27 27 bool success = true; // Result of setting everything 28 28 29 float exposure = 0.0; // Exposure time30 29 double time = 0.0; // Time of observation 31 30 psTimeType timeSys = 0; // Time system … … 41 40 42 41 num++; 43 exposure += psMetadataLookupF32(NULL, fpa->concepts, "FPA.EXPOSURE");44 42 45 43 psTime *fpaTime = psMetadataLookupPtr(NULL, fpa->concepts, "FPA.TIME"); … … 63 61 psFree(sourcesIter); 64 62 65 exposure /= (float)num;66 63 time /= (double)num; 67 64 68 MD_UPDATE(target->concepts, "FPA.EXPOSURE", F32, exposure);69 65 MD_UPDATE(target->concepts, "FPA.TIMESYS", S32, timeSys); 70 66 MD_UPDATE(target->concepts, "FPA.FILTER", str, filter); -
trunk/psModules/src/concepts/pmConceptsAverage.h
r14465 r14466 4 4 * @author Paul Price, IfA 5 5 * 6 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $7 * @date $Date: 2007-08-11 01:0 3:30$6 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2007-08-11 01:05:59 $ 8 8 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 9 9 */ … … 19 19 /// This function averages the values of the following concepts: 20 20 /// FPA.TIME 21 /// FPA.EXPOSURE22 21 /// And ensure the following concepts are consistent: 23 22 /// FPA.FILTER 24 23 /// FPA.TIMESYS 24 /// The following concepts could be of interest to the user, but are not treated: 25 /// FPA.EXPOSURE 25 26 bool pmConceptsAverageFPAs(pmFPA *target,///< Target FPA 26 27 psList *sources ///< List of source FPAs
Note:
See TracChangeset
for help on using the changeset viewer.
