Ignore:
Timestamp:
27/11/07 15:18:27 (12 years ago)
Author:
domlowe
Message:

added ability to filter out low dimension variables in scanner. Added some test crs definitions for testing rotated grids. Added axis identification by standard name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csmlscan.py

    r2901 r3065  
    119119        DATASETID = config.getConfigNoError('dataset', 'dsID') 
    120120        FEATURETYPE = config.getConfigNoError('features', 'type') 
    121         FEATURENUMBER = config.getConfigNoError('features', 'number') 
     121        FEATURENUMBER = config.getConfigNoError('features', 'number')         
     122        try: 
     123            MINAXES=eval(config.getConfigNoError('features','minaxes')) 
     124        except ConfigParser.NoOptionError: 
     125            MINAXES=0 
    122126        ROOTDIRECTORY = config.getConfigNoError('files', 'root') 
    123127        MAPPING = config.getConfigNoError('files', 'mapping') 
     
    130134        SPATIALSTORAGE=config.getConfigNoError('spatialaxes','spatialstorage') 
    131135         
     136         
    132137        if configTest==True: 
    133138            print 'Testing config file:' 
     
    138143            print '\n features:type =%s'%FEATURETYPE 
    139144            print '\n features:number =%s'%FEATURENUMBER 
     145            print '\n features:minaxes =%s'%MINAXES 
    140146            print '\n files:root =%s'%ROOTDIRECTORY 
    141147            print '\n files:mapping =%s'%MAPPING 
     
    186192    #build CSML document 
    187193    print ROOTDIRECTORY 
    188     csmldataset=csmllibs.csmlbuilder.csmlBuilder(DATASETID,ROOTDIRECTORY,FEATURETYPE,MAPPING,TIMEDIMENSION, OUTPUTFILE, PRINTSCREEN,TIMESTORAGE,SPATIALSTORAGE,VALUESTORAGE) 
     194    csmldataset=csmllibs.csmlbuilder.csmlBuilder(DATASETID,ROOTDIRECTORY,FEATURETYPE,MAPPING,TIMEDIMENSION, OUTPUTFILE, PRINTSCREEN,TIMESTORAGE,SPATIALSTORAGE,VALUESTORAGE, MINAXES) 
    189195    csmldataset.build() 
    190196 
Note: See TracChangeset for help on using the changeset viewer.