IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11144


Ignore:
Timestamp:
Jan 18, 2007, 3:19:34 PM (19 years ago)
Author:
Paul Price
Message:

Removing pmConceptsFilterIDfromConcept, which is obsolete now that FPA.FILTER is interpolated on read.

Location:
trunk/psModules/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfile.c

    r11105 r11144  
    252252        }
    253253    }
    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     }
    262254    return newName;
    263255}
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r11106 r11144  
    700700        }
    701701
     702        // XXX: 'function' unncesssary now that it's not required for filter?
    702703        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)
    712708                psAbort ("psModules", "failed to find filter");
    713709
  • trunk/psModules/src/concepts/pmConceptsPhotcode.c

    r11104 r11144  
    4040    return photcode;
    4141}
    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  
    77/// @author Eugene Magnier, IfA
    88///
    9 /// @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    10 /// @date $Date: 2007-01-15 21:59:31 $
     9/// @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     10/// @date $Date: 2007-01-19 01:19:34 $
    1111///
    1212/// Copyright 2005-2006 Institute for Astronomy, University of Hawaii
     
    2727/// the PHASE2 recipe.  Interpolation using the usual syntax (e.g., "{CHIP.NAME}") is permitted.
    2828psString pmConceptsPhotcodeForView(pmConfig *config, pmFPAfile *file, pmFPAview *view);
    29 char *pmConceptsFilterIDfromConcept (char *concept, psMetadata *concepts, psMetadata *camera);
    3029
    3130# endif
Note: See TracChangeset for help on using the changeset viewer.