Changeset 1464


Ignore:
Timestamp:
30/08/06 14:49:23 (13 years ago)
Author:
domlowe
Message:

fixed multiple glitches in scanner

Location:
TI02-CSML/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Examples/ScanningStuff/commands.txt

    r1460 r1464  
    1616python csmlscan.py -d /home/users/domlowe/CSML/Coapec/testfiles -o test.xml -t 't' GridSeriesFeature 
    1717 
    18 python csmlscan.py -d /badc/ecmwf-op/data/gridded_2.5 -o ecmwfop.xml -t 't' GridSeriesFeature 
     18python csmlscan.py -d /badc/ecmwf-op/data/gridded_2.5 -f GridSeries -o ecmwfop.xml -t 't'  
    1919 
    2020 
     
    2424 
    2525python csmlscan.py -c 'sampleconfig.cfg' 
     26 
     27f=cdms.open('/badc/ecmwf-op/data/gridded_2.5/2001/lisf0106/lisf01061218.ctl') 
  • TI02-CSML/trunk/Scanner/csmllibs/__init__.py

    r927 r1464  
    66import csmlfileextracts 
    77import csmldirectory 
    8 import csmlmeta 
    98import csmlfeaturetypes 
    109import csmlextra 
  • TI02-CSML/trunk/Scanner/csmllibs/csmlfeaturetypes.py

    r1462 r1464  
    2828        self.featuretype=  self.ffmap.getRepresentativeFiles()[0].getFeatureType() 
    2929       #and create the features 
     30        print 'determining feature type' 
     31        print self.featuretype 
    3032        if self.featuretype == 'GridSeries': 
    3133            self.createCSMLGridSeriesFeatures() 
  • TI02-CSML/trunk/Scanner/csmllibs/csmltime.py

    r1446 r1464  
    7575            cal = DI.getAxisAttribute('calendar') 
    7676            setcdtimeCalendar(cal) 
     77        except: 
     78            print "Could not get Calendar info" 
     79            cal='' 
     80        try: 
     81            setcdtimeCalendar(cal) 
    7782            units=DI.getAxisAttribute('units') 
    7883        except: 
    79             print "Could not get Calendar info" 
     84            print "Could not get time unit info" 
     85            units ='' 
    8086             
    8187        FileTimeList.sort() 
  • TI02-CSML/trunk/Scanner/csmlscan.py

    r1380 r1464  
    167167    # Handle defaults in case of no file mapping: 
    168168    if MAPPING is None: 
    169         if FEATURETYPE == "PointFeature": 
     169        if FEATURETYPE == "Point": 
    170170            MAPPING = 'onetoone' #default filemapping for PointFeature (?) 
    171         elif FEATURETYPE == "ProfileFeature":             
     171        elif FEATURETYPE == "Profile":             
    172172            MAPPING = 'onetoone' #default filemapping for ProfileFeature (?) 
    173         elif FEATURETYPE == "GridFeature": 
     173        elif FEATURETYPE == "Grid": 
    174174            MAPPING = 'onetoone' #default filemapping for GridFeature  
    175         elif FEATURETYPE == "PointSeriesFeature": 
     175        elif FEATURETYPE == "PointSeries": 
    176176            MAPPING = 'onetomany' 
    177         elif FEATURETYPE == "ProfileSeriesFeature": 
     177        elif FEATURETYPE == "ProfileSeries": 
    178178            MAPPING = 'onetomany' #default filemapping for ProfileSeriesFeature (?) 
    179         elif FEATURETYPE == "GridSeriesFeature": 
     179        elif FEATURETYPE == "GridSeries": 
    180180            MAPPING = 'onetomany' #default filemapping for GridSeriesFeature 
    181181     
Note: See TracChangeset for help on using the changeset viewer.