We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
When using the following code:
fig, ax = plt.subplots(figsize=(8,6)) plt.imshow(grid.dem, extent=grid.extent, cmap='cubehelix', zorder=1) plt.colorbar(label='Elevation (m)') plt.title('Digital elevation map') plt.xlabel('Longitude') plt.ylabel('Latitude')
I get the following error:
AttributeError: 'sGrid' object has no attribute 'dem'
Even though I did use grid = Grid.from_raster('.../example/dem.tif')
grid = Grid.from_raster('.../example/dem.tif')
Any thoughts on this issue?
Thanks! R.
The text was updated successfully, but these errors were encountered:
The grid doesn't store the DEM, you have to load it separately using dem = grid.read_raster('.../example/dem.tif')
dem = grid.read_raster('.../example/dem.tif')
Sorry, something went wrong.
No branches or pull requests
Hi,
When using the following code:
fig, ax = plt.subplots(figsize=(8,6)) plt.imshow(grid.dem, extent=grid.extent, cmap='cubehelix', zorder=1) plt.colorbar(label='Elevation (m)') plt.title('Digital elevation map') plt.xlabel('Longitude') plt.ylabel('Latitude')
I get the following error:
AttributeError: 'sGrid' object has no attribute 'dem'
Even though I did use
grid = Grid.from_raster('.../example/dem.tif')
Any thoughts on this issue?
Thanks!
R.
The text was updated successfully, but these errors were encountered: