Skip to content

Commit 27a80ca

Browse files
committed
Merge pull request #1156 from UV-CDAT/vcs3D_fix_incorrect_axis_identification
Fix error in getCoordType
2 parents a3a27c3 + bc60d56 commit 27a80ca

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Packages/DV3D/StructuredVariableReader.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -822,15 +822,15 @@ def getCoordType( self, axis, outputType ):
822822
if axis.isLongitude():
823823
self.lon = axis
824824
iCoord = 0
825-
if axis.isLatitude():
825+
elif axis.isLatitude():
826826
self.lat = axis
827827
iCoord = 1
828-
if axis.isLevel() or PlotType.isLevelAxis( axis.id ):
829-
self.lev = axis
830-
iCoord = 2 if ( outputType <> CDMSDataType.Hoffmuller ) else -1
831-
if axis.isTime():
828+
elif axis.isTime():
832829
self.time = axis
833830
iCoord = 2 if ( outputType == CDMSDataType.Hoffmuller ) else -1
831+
elif ( axis.isLevel() or PlotType.isLevelAxis( axis.id ) ):
832+
self.lev = axis
833+
iCoord = 2 if ( outputType <> CDMSDataType.Hoffmuller ) else -1
834834
return iCoord
835835

836836
def getIntersectedRoi( self, var, current_roi ):

0 commit comments

Comments
 (0)