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/ppSimMakeDark.c

    r14657 r17557  
    44bool ppSimMakeDark (pmReadout *readout, pmConfig *config) {
    55
     6    bool mdok;
     7
    68    psImage *signal = readout->image;
    79    psImage *variance = readout->weight;
    810
    9     float darkRate = psMetadataLookupF32(NULL, config->arguments, "DARK.RATE"); // Dark rate
    10     float expTime = psMetadataLookupF32(NULL, config->arguments, "EXPTIME"); // Exposure time
     11    psMetadata *recipe = psMetadataLookupMetadata(&mdok, config->recipes, PPSIM_RECIPE); // Recipe
     12
     13    float darkRate = psMetadataLookupF32(NULL, recipe, "DARK.RATE"); // Dark rate
     14    float expTime  = psMetadataLookupF32(NULL, recipe, "EXPTIME"); // Exposure time
    1115
    1216    for (int y = 0; y < signal->numRows; y++) {
Note: See TracChangeset for help on using the changeset viewer.