IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 9, 2020, 11:51:42 AM (6 years ago)
Author:
eugene
Message:

consolidate sky flux calculation and report in output cmf

File:
1 edited

Legend:

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

    r41173 r41331  
    3939    if (isnan(scale))    ESCAPE("PIXEL.SCALE is not defined");
    4040
    41     bool flatLum       = psMetadataLookupBool(&status,recipe, "STARS.FLAT.LUM"); // were real stars generated?
    42     float flatNum      = psMetadataLookupS32(&status, recipe, "STARS.FLAT.NUM"); // were real stars generated?
     41    bool flatLum       = psMetadataLookupBool(&status,recipe, "STARS.FLAT.LUM"); // use a flat luminosity function? (dn/dmag = const)
     42    float flatNum      = psMetadataLookupS32(&status, recipe, "STARS.FLAT.NUM"); // amplitude of flat luminosity function
    4343
    44     float skyRate = psMetadataLookupF32(&status, recipe, "SKY.RATE"); // Sky rate
    45     if (isnan(skyRate)) {
    46         float skyMags = psMetadataLookupF32(&status, recipe, "SKY.MAGS");  assert (status);
    47         skyRate = scale * scale * ppSimMagToFlux (skyMags, zp);
    48         // skyMags is in mags / square arcsec, so scale must be in arcsec / pixel
    49     }
     44    float skyRate = ppSimGetSkyRate (recipe);
    5045
    5146    // Size of FPA
Note: See TracChangeset for help on using the changeset viewer.