- Timestamp:
- May 3, 2010, 8:45:22 AM (16 years ago)
- Location:
- branches/simmosaic_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simmosaic_branches
- Property svn:mergeinfo changed
-
branches/simmosaic_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/simmosaic_branches/psModules/src/objects/pmSourceIO_PS1_CAL_0.c
r21516 r27839 282 282 pmPSF_AxesToModel (PAR, axes); 283 283 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]; 288 291 289 292 source->pixWeight = psMetadataLookupF32 (&status, row, "PSF_QF"); … … 349 352 350 353 // which extended source analyses should we perform? 351 bool doPetrosian = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_PETROSIAN");352 bool doIsophotal = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_ISOPHOTAL");353 bool doAnnuli = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_ANNULI");354 bool doKron = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_KRON");354 // bool doPetrosian = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_PETROSIAN"); 355 // bool doIsophotal = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_ISOPHOTAL"); 356 // bool doAnnuli = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_ANNULI"); 357 // bool doKron = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_KRON"); 355 358 356 359 psVector *radialBinsLower = psMetadataLookupPtr (&status, recipe, "RADIAL.ANNULAR.BINS.LOWER"); … … 410 413 psMetadataAdd (row, PS_LIST_TAIL, "Y_EXT_SIG", PS_DATA_F32, "Sigma in EXT y coordinate", yErr); 411 414 415 # if (0) 412 416 // Petrosian measurements 413 417 // XXX insert header data: petrosian ref radius, flux ratio … … 501 505 } 502 506 } 507 # endif 503 508 504 509 psArrayAdd (table, 100, row);
Note:
See TracChangeset
for help on using the changeset viewer.
