Changeset 37466
- Timestamp:
- Oct 8, 2014, 10:12:08 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 9 edited
-
ippconfig/recipes/psphot.config (modified) (3 diffs)
-
psModules/src/objects/pmSourceExtendedPars.c (modified) (1 diff)
-
psModules/src/objects/pmSourceExtendedPars.h (modified) (1 diff)
-
psModules/src/objects/pmSourceIO_CMF.c.in (modified) (2 diffs)
-
psphot/src/Makefile.am (modified) (1 diff)
-
psphot/src/psphot.h (modified) (1 diff)
-
psphot/src/psphotGalaxyParams.c (added)
-
psphot/src/psphotReadout.c (modified) (1 diff)
-
psphot/src/psphotSetThreads.c (modified) (1 diff)
-
psphot/src/psphotStackReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/psphot.config
r37465 r37466 233 233 # Extended source fit parameters 234 234 # these models are used for high-quality shape analysis after all sources have been removed 235 EXTENDED_SOURCE_FITS BOOL FALSE # perform the detailed extended sourc fits?236 EXTENDED_SOURCE_FITS_INTERACTIVE BOOL FALSE # perform the detailed extended sourc fits?235 EXTENDED_SOURCE_FITS BOOL FALSE # perform the detailed extended source fits? 236 EXTENDED_SOURCE_FITS_INTERACTIVE BOOL FALSE # perform the detailed extended source fits? 237 237 EXTENDED_SOURCE_FITS_POISSON BOOL FALSE # use poisson errors for extended source models 238 EXTENDED_SOURCE_GALAXY_PARAMS BOOL FALSE # measure galaxy parameters 238 239 239 240 EXTENDED_SOURCE_MODELS_SELECTION STR ALL … … 479 480 STACKPHOT METADATA 480 481 EXTENDED_SOURCE_FITS BOOL TRUE # perform any of the aperture-like measurements? 482 EXTENDED_SOURCE_GALAXY_PARAMS BOOL TRUE # perform any of the aperture-like measurements? 481 483 EXTENDED_SOURCE_SN_LIM F32 10.0 482 484 EXTENDED_SOURCE_PETROSIAN BOOL TRUE … … 494 496 RADIAL_APERTURES BOOL T # calculate flux in circular radial apertures? 495 497 RADIAL_APERTURES_SN_LIM F32 0.0 # S/N limit for radial aperture calculation 496 OUTPUT.FORMAT STR PS1_SV 3498 OUTPUT.FORMAT STR PS1_SV4 497 499 498 500 # subtract radial profiles for extremely bright stars? -
trunk/psModules/src/objects/pmSourceExtendedPars.c
r36375 r37466 226 226 pars->petrosianR50 = NAN; 227 227 pars->petrosianR50Err = NAN; 228 pars->ghalfLightRadius = NAN; 229 pars->gRT = NAN; 230 pars->gRA = NAN; 231 pars->gS2 = NAN; 232 pars->gA = NAN; 233 pars->gbumpy = NAN; 228 234 return pars; 229 235 } -
trunk/psModules/src/objects/pmSourceExtendedPars.h
r36747 r37466 65 65 float petrosianR50Err; 66 66 float petrosianFill; 67 float ghalfLightRadius; 68 float gRT; // total residual (from eliptically symmetric model) Simard 2002 69 float gRA; // assymetric residual (from eliptically symmetric model) Simard 2002 70 float gS2; // (un) smoothness (Simard, 2011 Cheng 2011) 71 float gA; // assymetry index (Gyory & Bell 2010) 72 float gbumpy; // Blakeslee bumpiness 67 73 } pmSourceExtendedPars; 68 74 -
trunk/psModules/src/objects/pmSourceIO_CMF.c.in
r37325 r37466 639 639 psMetadataAdd (row, PS_LIST_TAIL, "PETRO_RADIUS_90_ERR", PS_DATA_F32, "Petrosian R90 Error (pix)", extpars->petrosianR90Err); 640 640 psMetadataAdd (row, PS_LIST_TAIL, "PETRO_FILL", PS_DATA_F32, "Petrosian Fill Factor", extpars->petrosianFill); 641 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "HALF_LIGHT_RADIUS", 0, "Half Light Radius", extpars->ghalfLightRadius); 642 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_RT", 0, "total residual Sersic Model", extpars->gRT); 643 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_RA", 0, "assymetric residual Sersic Model", extpars->gRA); 644 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_S2", 0, "(un)smoothness paramter residual Sersic Model", extpars->gS2); 645 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_A", 0, "assymetry index", extpars->gA); 646 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_BUMPY", 0, "bumpiness", extpars->gbumpy); 641 647 } else { 642 648 psMetadataAdd (row, PS_LIST_TAIL, "PETRO_MAG", PS_DATA_F32, "Petrosian Magnitude", NAN); … … 649 655 psMetadataAdd (row, PS_LIST_TAIL, "PETRO_RADIUS_90_ERR", PS_DATA_F32, "Petrosian R90 Error (pix)",NAN); 650 656 psMetadataAdd (row, PS_LIST_TAIL, "PETRO_FILL", PS_DATA_F32, "Petrosian Fill Factor", NAN); 657 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "HALF_LIGHT_RADIUS", 0, "Half Light Radius", NAN); 658 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_RT", 0, "total residual Sersic Model", NAN); 659 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_RA", 0, "assymetric residual Sersic Model", NAN); 660 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_S2", 0, "(un)smoothness paramter residual Sersic Model", NAN); 661 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_A", 0, "assymetry index", NAN); 662 @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_BUMPY", 0, "bumpiness", NAN); 651 663 } 652 664 } -
trunk/psphot/src/Makefile.am
r37321 r37466 260 260 psphotSetNFrames.c \ 261 261 psphotSourceMemory.c \ 262 psphotChipParams.c 262 psphotChipParams.c \ 263 psphotGalaxyParams.c 263 264 264 265 # not currently used -
trunk/psphot/src/psphot.h
r37321 r37466 137 137 bool psphotExtendedSourceFitsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe); 138 138 bool psphotExtendedSourceFits_Threaded (psThreadJob *job); 139 140 bool psphotGalaxyParams (pmConfig *config, const pmFPAview *view, const char *filerule); 141 bool psphotGalaxyParamsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe); 142 bool psphotGalaxyParams_Threaded (psThreadJob *job); 139 143 140 144 bool psphotApResid (pmConfig *config, const pmFPAview *view, const char *filerule); -
trunk/psphot/src/psphotReadout.c
r36623 r37466 325 325 psphotExtendedSourceAnalysis (config, view, filerule); // pass 1 (detections->allSources) 326 326 psphotExtendedSourceFits (config, view, filerule); // pass 1 (detections->allSources) 327 // measure some parameters for galaxy science 328 psphotGalaxyParams (config, view, filerule); 327 329 psphotRadialApertures(config, view, filerule, 0); 328 330 -
trunk/psphot/src/psphotSetThreads.c
r37321 r37466 92 92 psFree(task); 93 93 94 task = psThreadTaskAlloc("PSPHOT_GALAXY_PARAMS", 8); 95 task->function = &psphotGalaxyParams_Threaded; 96 psThreadTaskAdd(task); 97 psFree(task); 98 94 99 return true; 95 100 } -
trunk/psphot/src/psphotStackReadout.c
r36630 r37466 342 342 psphotExtendedSourceFits (config, view, STACK_RAW); // pass 1 (detections->allSources) 343 343 344 // measure some parameters for galxy science 345 psphotGalaxyParams (config, view, STACK_RAW); // pass 1 (detections->allSources) 344 346 // create source children for the OUT filerule (for radial aperture photometry and output) 345 347 // NOTE: The new source children have image arrays pointing to the readout associated with
Note:
See TracChangeset
for help on using the changeset viewer.
