Vague error message when using gemgis.visualization.create_dem_3d() #207
-
Hi, I've been trying to use the function gemgis.visualization.create_dem_3d for one of my DEM but I get the following error:
My DEM is imported through rasterio and displays nicely with imshow (see image attached) I tried many things. First, with the extent from the example:
Then, with the extent of the DEM as given by rasterio.bounds:
My issue is that the message that is given is not very clear to me. I don't see in what my DEM is different from the one taken for the example on https://gemgis.readthedocs.io/en/latest/getting_started/tutorial/10_visualizing_data_with_pyvista.html?highlight=read. Thank you ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @vdevauxchupin, thanks for your question! For the extent, you will need to use integer values [-141, -140, 60, 60]. These values are used to create the meshgrid which is then used to create the StructuredGrid in Pyvista. So there will be some minor distortions in your raster. Maybe try it and get back to us again :) Cheers |
Beta Was this translation helpful? Give feedback.
Hello @vdevauxchupin,
thanks for your question! For the extent, you will need to use integer values [-141, -140, 60, 60]. These values are used to create the meshgrid which is then used to create the StructuredGrid in Pyvista. So there will be some minor distortions in your raster. Maybe try it and get back to us again :)
Cheers
Alex