Issue #1446 return None in Python if data is not available. Users will need to handle None, but it seems like this is better rather than return them an empty array and risk them searching through the empty array for values that are not there and getting more confused.
Change-Id: I36d72ed9642752eb92ae0902892bd79810111c07 Former-commit-id:d2f552ea31
[formerly2bed543d32
] [formerly1c504de33e
] [formerlyda21cf82e9
[formerly1c504de33e
[formerly 4b56329756881b3291ad2856a5c166cdfc635bf9]]] Former-commit-id:da21cf82e9
Former-commit-id: 409f064db1f070ce332e795d6e2d665d547ff738 [formerlyd39f0938e8
] Former-commit-id:39f3f70e1b
This commit is contained in:
parent
93194573c6
commit
cce03c6d43
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ def getLatLonCoords(gridRequest):
|
|||
@return: a tuple where the first element is a numpy array of lons, and the second element is a numpy array of lats
|
||||
'''
|
||||
gridGeometry = JavaDataAccessLayer.getGridGeometry(gridRequest.toJavaObj())
|
||||
if gridGeometry is None :
|
||||
return None
|
||||
latlons = LatLonReprojection.getLatLons(gridGeometry)
|
||||
nx = gridGeometry.getGridRange().getSpan(0)
|
||||
ny = gridGeometry.getGridRange().getSpan(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue