IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 1, 2009, 3:52:39 PM (17 years ago)
Author:
eugene
Message:

add ability to read a text list of sources (for forced photometry); fix destination for nRegions

File:
1 edited

Legend:

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

    r25754 r25979  
    282282        pmPSF_AxesToModel (PAR, axes);
    283283
    284         float lflux = psMetadataLookupF32 (&status, row, "PEAK_FLUX_AS_MAG");
    285         float flux = (isfinite(lflux)) ? pow(10.0, -0.4*lflux) : NAN;
    286         source->peak = pmPeakAlloc(PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], flux, PM_PEAK_LONE);
    287         source->peak->flux = flux;
     284        float peakMag     = psMetadataLookupF32 (&status, row, "PEAK_FLUX_AS_MAG");
     285        float peakFlux    = (isfinite(peakMag)) ? pow(10.0, -0.4*peakMag) : NAN;
     286
     287        source->peak       = pmPeakAlloc(PAR[PM_PAR_XPOS], PAR[PM_PAR_YPOS], peakFlux, PM_PEAK_LONE);
     288        source->peak->flux = peakFlux;
     289        source->peak->dx   = dPAR[PM_PAR_XPOS];
     290        source->peak->dy   = dPAR[PM_PAR_YPOS];
    288291
    289292        source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF");
Note: See TracChangeset for help on using the changeset viewer.