IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2008, 4:03:31 PM (18 years ago)
Author:
eugene
Message:

update from changes on eam_branch_20080511 : adding photometry of fake sources, force photometry; major cleanups

File:
1 edited

Legend:

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

    r17557 r18011  
    11# include "ppSim.h"
    22
    3 psVector *ppSimMakeBias (pmReadout *readout, pmConfig *config, const psRandom *rng) {
     3psVector *ppSimMakeBias (bool *status, pmReadout *readout, pmConfig *config, const psRandom *rng) {
    44
    55    bool mdok;
     6
     7    if (status) *status = true;
    68
    79    pmCell *cell = readout->parent;
    810
    911    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSIM_RECIPE); // Recipe
     12
     13    bool bias = psMetadataLookupBool(&mdok, recipe, "BIAS"); // Generate a Bias?
     14    if (!bias) return NULL;
    1015
    1116    float biasLevel = psMetadataLookupF32(NULL, recipe, "BIAS.LEVEL"); // Bias level
     
    1924        if (!mdok) {
    2025            psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to find READNOISE in recipe.");
     26            *status = false;
    2127            return NULL;
    2228        }
Note: See TracChangeset for help on using the changeset viewer.