Changeset 17702 for branches/eam_branch_20080511/ppSim/src/ppSimMakeDark.c
- Timestamp:
- May 15, 2008, 12:01:36 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080511/ppSim/src/ppSimMakeDark.c
r17672 r17702 11 11 psMetadata *recipe = psMetadataLookupMetadata(&mdok, config->recipes, PPSIM_RECIPE); // Recipe 12 12 13 bool dark = psMetadataLookupBool(& status, recipe, "DARK"); // Generate a DARK?13 bool dark = psMetadataLookupBool(&mdok, recipe, "DARK"); // Generate a DARK? 14 14 if (!dark) return true; 15 15 16 float darkRate = psMetadataLookupF32(NULL, recipe, "DARK.RATE"); // Dark rate 17 float expTime = psMetadataLookupF32(NULL, recipe, "EXPTIME"); // Exposure time 16 float darkRate = psMetadataLookupF32(&mdok, recipe, "DARK.RATE"); // Dark rate 17 if (isnan(darkRate)) { 18 psError(PS_ERR_UNKNOWN, false, "missing DARK.RATE\n"); 19 return false; 20 } 21 22 float expTime = psMetadataLookupF32(&mdok, recipe, "EXPTIME"); // Exposure time 23 if (isnan(expTime)) { 24 psError(PS_ERR_UNKNOWN, false, "missing EXPTIME\n"); 25 return false; 26 } 27 28 psTrace("ppSim", 6, "darkRate: %f, expTime: %f\n", darkRate, expTime); 18 29 19 30 for (int y = 0; y < signal->numRows; y++) {
Note:
See TracChangeset
for help on using the changeset viewer.
