Skip to content

Commit

Permalink
Merge pull request #1156 from UV-CDAT/vcs3D_fix_incorrect_axis_identi…
Browse files Browse the repository at this point in the history
…fication

Fix error in getCoordType
  • Loading branch information
doutriaux1 committed Mar 19, 2015
2 parents a3a27c3 + bc60d56 commit 27a80ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Packages/DV3D/StructuredVariableReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,15 +822,15 @@ def getCoordType( self, axis, outputType ):
if axis.isLongitude():
self.lon = axis
iCoord = 0
if axis.isLatitude():
elif axis.isLatitude():
self.lat = axis
iCoord = 1
if axis.isLevel() or PlotType.isLevelAxis( axis.id ):
self.lev = axis
iCoord = 2 if ( outputType <> CDMSDataType.Hoffmuller ) else -1
if axis.isTime():
elif axis.isTime():
self.time = axis
iCoord = 2 if ( outputType == CDMSDataType.Hoffmuller ) else -1
elif ( axis.isLevel() or PlotType.isLevelAxis( axis.id ) ):
self.lev = axis
iCoord = 2 if ( outputType <> CDMSDataType.Hoffmuller ) else -1
return iCoord

def getIntersectedRoi( self, var, current_roi ):
Expand Down

0 comments on commit 27a80ca

Please sign in to comment.