Changeset 17557 for trunk/ppSim/src/ppSimSetPSF.c
- Timestamp:
- May 7, 2008, 10:55:21 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimSetPSF.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimSetPSF.c
r15005 r17557 1 1 # include "ppSim.h" 2 static char *defaultModel = "PS_MODEL_ GAUSS";2 static char *defaultModel = "PS_MODEL_QGAUSS"; 3 3 4 4 bool ppSimSetPSF (pmChip *chip, pmConfig *config) { 5 5 6 bool status ;6 bool status, mdok; 7 7 pmPSF *psf = NULL; 8 8 pmTrend2D *param = NULL; 9 10 psMetadata *recipe = psMetadataLookupMetadata(&mdok, config->recipes, PPSIM_RECIPE); // Recipe 9 11 10 12 // the pmPSF IO functions stores the PSF on the chip->analysis … … 14 16 } 15 17 16 // no supplied PSF, build one using supplied value for seeing 17 // XXX need to correct for the pixel scale 18 float seeing = psMetadataLookupF32(&status, config->arguments, "SEEING"); // Seeing sigma (pix) 18 // no supplied PSF, build one using supplied value for seeing seeing is already corrected 19 // for the pixel scale, and is converted from FWHM to SIGMA (this is done in 20 // ppSimArguments) 21 float seeing = psMetadataLookupF32(&status, recipe, "SEEING"); // Seeing SIGMA (pixels) 19 22 20 23 char *psfModelName = psMetadataLookupStr(&status, config->arguments, "PSF.MODEL"); // Name of PSF model … … 50 53 psEllipsePol pol; 51 54 52 // supply the semi-major axis 55 // supply the semi-major axis (these are SIGMA values in PIXELS) 53 56 axes.major = seeing; 54 57 axes.minor = seeing;
Note:
See TracChangeset
for help on using the changeset viewer.
