- Timestamp:
- Jun 6, 2014, 8:30:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140423/psastro/src/psastroDataLoad.c
r36819 r36825 42 42 } 43 43 44 // apply Koppenhoeffer correction to this exposure?45 bool applyKH = psMetadataLookupBool (NULL, recipe, "KH.CORRECT.APPLY.EXP");46 if (applyKH) {47 // make sure the KH correction file is loaded. de-activate all files except PSASTRO.KH.CORRECT48 pmFPAfileActivate (config->files, false, NULL);49 pmFPAfileActivate (config->files, true, "PSASTRO.KH.CORRECT");50 51 pmFPAview *viewKH = pmFPAviewAlloc (0);52 53 // files associated with the science image54 if (!pmFPAfileIOChecks (config, viewKH, PM_FPA_BEFORE)) {55 psError (PS_ERR_IO, false, "Can't load the Koppenhoeffer Correction file");56 return false;57 }58 psFree (viewKH);59 }60 61 44 // select the input data sources 62 45 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT"); … … 69 52 pmFPAfileActivate (config->files, false, NULL); 70 53 pmFPAfileActivate (config->files, true, "PSASTRO.INPUT"); 54 55 // if we request KH Correction, activate that file as well 56 bool applyKH = psMetadataLookupBool (NULL, recipe, "KH.CORRECT.APPLY.EXP"); 57 if (applyKH) { 58 pmFPAfileActivate (config->files, true, "PSASTRO.KH.CORRECT"); 59 } 71 60 72 61 pmFPAview *view = pmFPAviewAlloc (0);
Note:
See TracChangeset
for help on using the changeset viewer.
