IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 7, 2008, 10:55:21 AM (18 years ago)
Author:
eugene
Message:

fix errors with star density normalizations and flux consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimSetPSF.c

    r15005 r17557  
    11# include "ppSim.h"
    2 static char *defaultModel = "PS_MODEL_GAUSS";
     2static char *defaultModel = "PS_MODEL_QGAUSS";
    33
    44bool ppSimSetPSF (pmChip *chip, pmConfig *config) {
    55
    6     bool status;
     6    bool status, mdok;
    77    pmPSF *psf = NULL;
    88    pmTrend2D *param = NULL;
     9
     10    psMetadata *recipe = psMetadataLookupMetadata(&mdok, config->recipes, PPSIM_RECIPE); // Recipe
    911
    1012    // the pmPSF IO functions stores the PSF on the chip->analysis
     
    1416    }
    1517
    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)
    1922
    2023    char *psfModelName = psMetadataLookupStr(&status, config->arguments, "PSF.MODEL"); // Name of PSF model
     
    5053    psEllipsePol pol;
    5154
    52     // supply the semi-major axis
     55    // supply the semi-major axis (these are SIGMA values in PIXELS)
    5356    axes.major = seeing;
    5457    axes.minor = seeing;
Note: See TracChangeset for help on using the changeset viewer.