Changeset 11200 for trunk/psphot/src/psphotWeightBias.c
- Timestamp:
- Jan 19, 2007, 3:46:30 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotWeightBias.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotWeightBias.c
r10096 r11200 18 18 19 19 // set fitting method to use non-poisson errors (local sky error) 20 float SKY_S TDEV = psMetadataLookupF32 (&status, recipe, "SKY_STDEV");20 float SKY_SIG = psMetadataLookupF32 (&status, recipe, "SKY_SIG"); 21 21 if (!status) { 22 SKY_S TDEV= 1.0;23 psWarning("SKY_S TDEV is not set --- defaulting to %f\n", SKY_STDEV);22 SKY_SIG = 1.0; 23 psWarning("SKY_SIG is not set --- defaulting to %f\n", SKY_SIG); 24 24 } 25 25 // use poissonian errors or local-sky errors … … 29 29 psWarning("POISSON_ERRORS is not set in the recipe --- defaulting to true.\n"); 30 30 } 31 pmSourceFitModelInit (15, 0.1, PS_SQR(SKY_S TDEV), POISSON_ERRORS);31 pmSourceFitModelInit (15, 0.1, PS_SQR(SKY_SIG), POISSON_ERRORS); 32 32 33 33 // option to limit analysis to a specific region
Note:
See TracChangeset
for help on using the changeset viewer.
