Create Topography with numpy #735
Replies: 4 comments 2 replies
-
I ask because my tif file keeps giving the following error message. ERROR 1: Attempt to create 0x1237 dataset is illegal,sizes must be larger than zero. AttributeError Traceback (most recent call last) ~/gempy/gempy/plot/decorators.py in pst(*args, **kwargs) ~/gempy/gempy/core/model.py in set_topography(self, source, set_mask, **kwargs) ~/gempy/gempy/core/data.py in create_topography(self, source, **kwargs) ~/gempy/gempy/core/grid_modules/topography.py in load_from_gdal(self, filepath) ~/gempy/gempy/core/grid_modules/create_topography.py in init(self, path_dem, grid, extent, delete_temp) ~/gempy/gempy/core/grid_modules/create_topography.py in crop2grid(self, delete_temp) AttributeError: 'NoneType' object has no attribute 'ReadAsArray' The file path is definitely correct. And the fix for ERROR 4 was unsuccessful. So I wanted to try it via an array. |
Beta Was this translation helpful? Give feedback.
-
I think that fits the expertise of @AlexanderJuestel. |
Beta Was this translation helpful? Give feedback.
-
@anneschulz1991 and @2651666L, do you still have issues with your rasters using the latest version of GemPy? (2.3) |
Beta Was this translation helpful? Give feedback.
-
Maybe there is a solution here: #790 |
Beta Was this translation helpful? Give feedback.
-
Hello to all,
it's me again and I need help again. I saw on the Gempy website that it is possible to determine the topography using a numpy array. Is there anyone who can send me the exact command and show me how the array should look exactly (with coordinates or without)?
-->geo_model.set_topography(source='numpy'....?
Maybe there is already an example.
Many greetings
Anne
Beta Was this translation helpful? Give feedback.
All reactions