IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 2, 2007, 2:13:42 PM (19 years ago)
Author:
magnier
Message:

fixed inconsistencies between read and write

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO_PS1_DEV_0.c

    r13064 r13139  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-04-27 22:14:08 $
     5 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-05-03 00:13:42 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8585        }
    8686
    87         float peakMag = (source->peak->flux > 0) ? -2.5*log(source->peak->flux) : NAN;
     87        float peakMag = (source->peak->flux > 0) ? -2.5*log10(source->peak->flux) : NAN;
    8888        psS16 nImageOverlap = 1;
    8989        psS32 ID = 0; // XXX need to figure out how to generate this
     
    187187        PAR[PM_PAR_SKY]   = psMetadataLookupF32 (&status, row, "SKY");
    188188        dPAR[PM_PAR_SKY]  = psMetadataLookupF32 (&status, row, "SKY_SIGMA");
     189        source->sky = PAR[PM_PAR_SKY];
     190        source->skyErr = dPAR[PM_PAR_SKY];
    189191
    190192        // XXX use these to determine PAR[PM_PAR_I0]?
    191193        source->psfMag    = psMetadataLookupF32 (&status, row, "PSF_INST_MAG");
    192         source->errMag    = psMetadataLookupF32 (&status, row, "PSF_INST_MAG_ERR");
     194        source->errMag    = psMetadataLookupF32 (&status, row, "PSF_INST_MAG_SIG");
    193195
    194196        pmPSF_AxesToModel (PAR, axes);
     
    197199        float flux = (isfinite(lflux)) ? pow(10.0, -0.4*lflux) : NAN;
    198200        source->peak = pmPeakAlloc(PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], flux, PM_PEAK_LONE);
     201        source->peak->flux = flux;
     202
    199203        source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF");
    200204
Note: See TracChangeset for help on using the changeset viewer.