Skip to content

Commit

Permalink
Merge pull request #31 from TUW-GEO/restore-python3-support
Browse files Browse the repository at this point in the history
Replace has_key by in comparison.
  • Loading branch information
cpaulik committed Feb 4, 2016
2 parents 191e453 + b8bcc1a commit 7e4944e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygeogrids/netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def load_grid(filename, subset_flag='subset_flag'):
if subset_flag in nc_data.variables.keys():
subset = np.where(nc_data.variables[subset_flag][:] == 1)[0]

if nc_data.variables.has_key('crs'):
if 'crs' in nc_data.variables:
geodatumName = nc_data.variables['crs'].getncattr('ellipsoid_name')
else:
# ellipsoid information is missing, use WGS84 by default
Expand Down

0 comments on commit 7e4944e

Please sign in to comment.