Ignore:
Timestamp:
10/08/06 15:23:02 (13 years ago)
Author:
domlowe
Message:

propagating additional args/configs through Scanner code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Scanner/csmllibs/csmlfileextracts.py

    r1154 r1380  
    66import sys 
    77class fileExtractBuilder: 
    8     def __init__(self, dataset_element, ffmap): 
     8    def __init__(self, dataset_element, ffmap, timedim): 
    99        self.dataset_element=dataset_element 
    1010        self.ffmap=ffmap 
    11         self.createFileExtracts() 
    12      
    13     def createFileExtracts(self): 
    14         #print "REPRESENTATIVE FILES:" 
    15         #print self.ffmap.getRepresentativeFiles() 
    16          
    17         #given a featurefilemap object, create file extracts from the "representativeFiles"      
    18         #used to store extract/filename/variable relationship 
    19         #referenced when creating features 
    20         self.fileExtractDictionary={} 
    21      
     11        self.fileExtractDictionary={} #used to store extract/filename/variable relationship 
     12        self.createFileExtractsForAxes() 
     13 
     14    def createFileExtractsForAxes(self): 
     15        #given a featurefilemap object, create file extracts for the axes from the "representativeFiles"         
     16             
    2217        fileid=0  #used to distinguish extract names for similar variables from different files 
    2318        #adlist is an empty list object to hold CSML ArrayDescriptors eg. NetCDFExtract, GRIBExtract etc 
     
    2621            fileid=fileid+1 
    2722            filename=repfile.getRepresentativeFileName() 
    28             #print 'representative file:' 
    29             #print repfile.getRepresentativeFileName() 
    30             #print 'feature type:' 
    31             #print repfile.getFeatureType()      
    3223            DI = csmllibs.csmldataiface.DataInterface() 
    3324            DI = DI.getUnknownInterfaceType(filename) 
     
    3930            allDimNames=DI.getListOfAxes() 
    4031            numDomains=len(allDimNames) 
     32            print allDimNames 
    4133            for j in range (0, len(allDimNames)): 
    42 #                 print self.extractType 
    43 #                 print self.extractPrefix 
    4434                if self.extractType=='NASAAmesExtract': 
    4535                    arrayDescriptor=csmllibs.Parser.NASAAmesExtract() 
Note: See TracChangeset for help on using the changeset viewer.