IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2007, 11:59:31 AM (19 years ago)
Author:
magnier
Message:

creating pmConceptsFilterIDfromConcept

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsPhotcode.c

    r9572 r11104  
    4040    return photcode;
    4141}
     42
     43char *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
Note: See TracChangeset for help on using the changeset viewer.