Ignore:
Timestamp:
12/05/06 15:57:49 (14 years ago)
Author:
domlowe
Message:

improvments to PointSeriesFeature? & NasaAmes? handling

File:
1 edited

Legend:

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

    r898 r919  
    7373        setattr(self.dataset_element, 'arrayDescriptors', adlist) 
    7474     
     75 
     76def createSingleExtract(extractType, fileName, variableName, arraySize): 
     77    #creates a single file extract on demand. (not part of general builder class) 
     78    #need to incorporate check that a file extract of the same name doesn't already exist. 
     79    if extractType=='NASAAmesExtract': 
     80        arrayDescriptor=csmllibs.Parser.NASAAmesExtract() 
     81    if extractType=='NetCDFExtract': 
     82        arrayDescriptor=csmllibs.Parser.NetCDFExtract() 
     83    if extractType=='GRIBExtract': 
     84        arrayDescriptor=csmllibs.Parser.GRIBExtract() 
     85    if extractType=='PPExtract': 
     86        arrayDescriptor=csmllibs.Parser.PPExtract() 
     87    #need to change this so it does the right thing for grib extracts too.. 
     88    arrayDescriptor.id='_%s' % variableName   #need prefix system here.. 
     89    arrayDescriptor.fileName = fileName 
     90    arrayDescriptor.arraySize=[arraySize] 
     91    arrayDescriptor.variableName=variableName 
     92    return arrayDescriptor 
     93             
    7594        #    sys.exit() 
    7695             
Note: See TracChangeset for help on using the changeset viewer.