Changeset 2216 for TI02-CSML/trunk/csml


Ignore:
Timestamp:
28/02/07 11:09:04 (13 years ago)
Author:
domlowe
Message:

fixed bug with axis ordering

Location:
TI02-CSML/trunk/csml
Files:
2 edited

Legend:

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

    r2205 r2216  
    7575            else: 
    7676                name=ord[1].coordAxisLabel.CONTENT 
    77             self.addAxis(name,vals,isLon=lon,isLat=lat,units=unitlist[ord[0]])#to do, units attribute for CF compliance 
     77            for ax in enumerate(axisorder): 
     78                if ax[1]==name: 
     79                    position=ax[0] 
     80            self.addAxis(name,vals,isLon=lon,isLat=lat,units=unitlist[position])#to do, units attribute for CF compliance 
    7881        self.addVariable(fulldata,varid, axisorder, fillvalue, units=unitlist[-1] ) #to do, units attribute for CF compliance 
    79                  
    8082         
    8183    def closeFinishedFile(self): 
  • TI02-CSML/trunk/csml/testfiles/apicalls.py

    r2215 r2216  
    1212csmldoc.parse(f) 
    1313 
    14 print '\n this is the bounding box of the whole feature collection: ' 
    15 print csmldoc.getBoundingBox 
    16 sys.exit() 
     14#print '\n this is the bounding box of the whole feature collection: ' 
     15#print csmldoc.getBoundingBox 
     16#sys.exit() 
    1717 
    1818 
Note: See TracChangeset for help on using the changeset viewer.