Changeset 11200
- Timestamp:
- Jan 19, 2007, 3:46:30 PM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 4 edited
-
psphotChoosePSF.c (modified) (2 diffs)
-
psphotImageMedian.c (modified) (1 diff)
-
psphotOutput.c (modified) (1 diff)
-
psphotWeightBias.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r11189 r11200 36 36 37 37 // supply the measured sky variance for optional constant errors (non-poissonian) 38 float SKY_S TDEV = psMetadataLookupF32 (&status, recipe, "SKY_STDEV");39 if (!status) { 40 SKY_S TDEV= 1.0;41 psWarning("SKY_S TDEV is not set --- defaulting to %f\n", SKY_STDEV);38 float SKY_SIG = psMetadataLookupF32 (&status, recipe, "SKY_SIG"); 39 if (!status) { 40 SKY_SIG = 1.0; 41 psWarning("SKY_SIG is not set --- defaulting to %f\n", SKY_SIG); 42 42 } 43 43 // use poissonian errors or local-sky errors … … 47 47 psWarning("POISSON_ERRORS is not set in the recipe --- defaulting to true.\n"); 48 48 } 49 pmSourceFitModelInit (15, 0.01, PS_SQR(SKY_S TDEV), POISSON_ERRORS);49 pmSourceFitModelInit (15, 0.01, PS_SQR(SKY_SIG), POISSON_ERRORS); 50 50 51 51 // use poissonian errors or local-sky errors -
trunk/psphot/src/psphotImageMedian.c
r11171 r11200 208 208 psImageStats (statsBck, model->image, NULL, 0); 209 209 psMetadataAdd (recipe, PS_LIST_TAIL, "SKY_MEAN", PS_DATA_F32 | PS_META_REPLACE, "sky model mean", statsBck->sampleMean); 210 psMetadataAdd (recipe, PS_LIST_TAIL, "SKY _STDEV", PS_DATA_F32 | PS_META_REPLACE, "sky model stdev", statsBck->sampleStdev);210 psMetadataAdd (recipe, PS_LIST_TAIL, "SKYSTDEV", PS_DATA_F32 | PS_META_REPLACE, "sky model stdev", statsBck->sampleStdev); 211 211 psMetadataAdd (recipe, PS_LIST_TAIL, "SKY_MAX", PS_DATA_F32 | PS_META_REPLACE, "sky model maximum value", statsBck->max); 212 212 psMetadataAdd (recipe, PS_LIST_TAIL, "SKY_MIN", PS_DATA_F32 | PS_META_REPLACE, "sky model minimum value", statsBck->min); -
trunk/psphot/src/psphotOutput.c
r10185 r11200 105 105 // sky background model statistics 106 106 psMetadataItemTransfer (header, recipe, "SKY_MEAN"); 107 psMetadataItemTransfer (header, recipe, "SKY_S TDEV");107 psMetadataItemTransfer (header, recipe, "SKY_SIG"); 108 108 psMetadataItemTransfer (header, recipe, "SKY_MIN"); 109 109 psMetadataItemTransfer (header, recipe, "SKY_MAX"); -
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.
