Changeset 17672 for branches/eam_branch_20080511/ppSim/src/ppSimMakeSky.c
- Timestamp:
- May 13, 2008, 4:56:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimMakeSky.c
r17557 r17672 15 15 psMetadata *recipe = psMetadataLookupMetadata(&status, config->recipes, PPSIM_RECIPE); // Recipe 16 16 17 bool sky = psMetadataLookupBool(&status, recipe, "SKY"); // Generate a SKY flux? 18 if (!sky) return true; 19 17 20 float expTime = psMetadataLookupF32(&status, recipe, "EXPTIME"); // Exposure time 18 21 float flatSigma = psMetadataLookupF32(&status, recipe, "FLAT.SIGMA"); // Flat-field coefficient … … 22 25 if (isnan(skyRate)) { 23 26 float zp = psMetadataLookupF32(&status, recipe, "ZEROPOINT"); assert (status); 24 float scale = psMetadataLookupF32(&status, recipe, " SCALE");assert (status);27 float scale = psMetadataLookupF32(&status, recipe, "PIXEL.SCALE"); assert (status); 25 28 float skyMags = psMetadataLookupF32(&status, recipe, "SKY.MAGS"); assert (status); 26 29 skyRate = scale * scale * ppSimMagToFlux (skyMags, zp); … … 37 40 int yParityCell = psMetadataLookupS32(&status, cell->concepts, "CELL.YPARITY"); 38 41 39 int binning = psMetadataLookupS32(NULL, config->arguments, "BINNING"); // Binning in x and y42 int binning = psMetadataLookupS32(NULL, recipe, "BINNING"); // Binning in x and y 40 43 41 44 // Size of FPA
Note:
See TracChangeset
for help on using the changeset viewer.
