Skip to content

Commit

Permalink
Added check of lat lon presence
Browse files Browse the repository at this point in the history
  • Loading branch information
aashish24 committed Sep 24, 2015
1 parent 1ff5fbd commit 8693236
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Packages/vcs/Lib/vcsvtk/vectorpipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ def plot(self, data1, data2, tmpl, grid, transform):
data2 = self._context().trimData2D(data2)

scale = 1.0
lat = None
lon = None

lat = data1.getLatitude()[:]
lon = data1.getLongitude()[:]
latAccessor = data1.getLatitude()
latAccessor = data1.getLongitude()
if latAccessor:
lat = latAccessor[:]
if latAccessor:
lon = lonAccesrsor[:]

if projection is not None:
if not None in(projection, lat, lon):
scale = (lat.max() - lat.min()) * (lon.max() - lon.min())

gridGenDict = vcs2vtk.genGridOnPoints(data1, self._gm, deep=False, grid=grid,
Expand Down

2 comments on commit 8693236

@aashish24
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, pushed a fix.

@doutriaux1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok let's wait for the bots in the morning. By the way the new Macs have XCode 7 on them and our CMake freaks out.

Please sign in to comment.