IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14466


Ignore:
Timestamp:
Aug 10, 2007, 3:05:59 PM (19 years ago)
Author:
Paul Price
Message:

Don't want to average over the exposure time.

Location:
trunk/psModules/src/concepts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsAverage.c

    r14465 r14466  
    2727    bool success = true;                // Result of setting everything
    2828
    29     float exposure   = 0.0;             // Exposure time
    3029    double time      = 0.0;             // Time of observation
    3130    psTimeType timeSys = 0;             // Time system
     
    4140
    4241        num++;
    43         exposure   += psMetadataLookupF32(NULL, fpa->concepts, "FPA.EXPOSURE");
    4442
    4543        psTime *fpaTime = psMetadataLookupPtr(NULL, fpa->concepts, "FPA.TIME");
     
    6361    psFree(sourcesIter);
    6462
    65     exposure  /= (float)num;
    6663    time      /= (double)num;
    6764
    68     MD_UPDATE(target->concepts, "FPA.EXPOSURE", F32, exposure);
    6965    MD_UPDATE(target->concepts, "FPA.TIMESYS", S32, timeSys);
    7066    MD_UPDATE(target->concepts, "FPA.FILTER", str, filter);
  • trunk/psModules/src/concepts/pmConceptsAverage.h

    r14465 r14466  
    44 * @author Paul Price, IfA
    55 *
    6  * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-08-11 01:03:30 $
     6 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-08-11 01:05:59 $
    88 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    99 */
     
    1919/// This function averages the values of the following concepts:
    2020/// FPA.TIME
    21 /// FPA.EXPOSURE
    2221/// And ensure the following concepts are consistent:
    2322/// FPA.FILTER
    2423/// FPA.TIMESYS
     24/// The following concepts could be of interest to the user, but are not treated:
     25/// FPA.EXPOSURE
    2526bool pmConceptsAverageFPAs(pmFPA *target,///< Target FPA
    2627                           psList *sources ///< List of source FPAs
Note: See TracChangeset for help on using the changeset viewer.