Changeset 11144
- Timestamp:
- Jan 18, 2007, 3:19:34 PM (19 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 4 edited
-
camera/pmFPAfile.c (modified) (1 diff)
-
camera/pmFPAfileDefine.c (modified) (1 diff)
-
concepts/pmConceptsPhotcode.c (modified) (1 diff)
-
concepts/pmConceptsPhotcode.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfile.c
r11105 r11144 252 252 } 253 253 } 254 if (strstr (newName, "{FILTER.ID}") != NULL) {255 if (file->fpa != NULL) {256 char *filterID = pmConceptsFilterIDfromConcept ("FPA.FILTER", file->fpa->concepts, file->camera);257 if (filterID && *filterID) {258 psStringSubstitute(&newName, filterID, "{FILTER.ID}");259 }260 }261 }262 254 return newName; 263 255 } -
trunk/psModules/src/camera/pmFPAfileDefine.c
r11106 r11144 700 700 } 701 701 702 // XXX: 'function' unncesssary now that it's not required for filter? 702 703 if (!strcasecmp (option, "filter")) { 703 options->filter = NULL; 704 if (function) { 705 if (!strcasecmp (function, "FILTER.ID")) { 706 options->filter = pmConceptsFilterIDfromConcept (concept, input->concepts, config->camera); 707 } 708 } else { 709 options->filter = psMetadataLookupPtr (&status, input->concepts, concept); 710 } 711 if (options->filter == NULL) 704 if (function) 705 psAbort ("psModules", "no detrend constraint function for filter"); 706 options->filter = psMetadataLookupPtr (&status, input->concepts, concept); 707 if (!status) 712 708 psAbort ("psModules", "failed to find filter"); 713 709 -
trunk/psModules/src/concepts/pmConceptsPhotcode.c
r11104 r11144 40 40 return photcode; 41 41 } 42 43 char *pmConceptsFilterIDfromConcept (char *concept, psMetadata *concepts, psMetadata *camera)44 {45 46 bool status;47 48 char *filterName = psMetadataLookupStr (&status, concepts, concept);49 if (!status)50 psAbort ("psModules", "missing concept %s", concept);51 psMetadata *filterTable = psMetadataLookupPtr (&status, camera, "FILTER.ID");52 if (!status)53 psAbort ("ppImage", "missing FILTER.ID table");54 char *filter = psMetadataLookupStr (&status, filterTable, filterName);55 if (!status)56 psAbort ("ppImage", "FILTER %s not found in FILTER.ID table", filterName);57 58 return filter;59 }60 -
trunk/psModules/src/concepts/pmConceptsPhotcode.h
r11104 r11144 7 7 /// @author Eugene Magnier, IfA 8 8 /// 9 /// @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 /// @date $Date: 2007-01-1 5 21:59:31$9 /// @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 /// @date $Date: 2007-01-19 01:19:34 $ 11 11 /// 12 12 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii … … 27 27 /// the PHASE2 recipe. Interpolation using the usual syntax (e.g., "{CHIP.NAME}") is permitted. 28 28 psString pmConceptsPhotcodeForView(pmConfig *config, pmFPAfile *file, pmFPAview *view); 29 char *pmConceptsFilterIDfromConcept (char *concept, psMetadata *concepts, psMetadata *camera);30 29 31 30 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
