Closed domist07 closed 4 years ago
I think this problem is caused by the topography - it seems that the extent of your raster file is smaller than the extent of the model. Would you mind to check that by comparing geo_model.grid.regular_grid.extent
and the extent of the raster file?
You can get the latter either directly from gdal or by using this code from gempy:
from gempy.utils import create_topography
dem = create_topography.Load_DEM_GDAL("topography.grd")
print(dem.extent)
At the moment it is safer if the raster file is larger or at least the same size as the geomodel, which means you could try to adjust the model extent accordingly.
Also, to make it easier for me to fix this, would you mind to make an imshow of geo_model.grid.topography.topo.dem_zval
with colorbar and put it here as a comment?
geo_model.grid.regular_grid.extent =
[3514076.123, 3514114.756, 5428506.806, 5428609.140, 140.000, 232.825]
geo_model.grid.topography.extent =
[3514076, 3514114, 5428506, 5428609]
I have tried to set the extend of the regular_grid to [3514080, 3514110, 5428520, 5428600, 140, 233]
but the same error occurs.
Ok sorry, I meant to print the extent of the original raster file, using this code:
from gempy.utils import create_topography
dem = create_topography.Load_DEM_GDAL("topography.grd")
print(dem.extent)
(The geo_model.grid.topography extent is after cropping the raster to the regular grid, so these two extents should always be similar anyways. )
After that you could try to set your regular grid extent to dem.extent
.
Does the image of the topography look like you would expect?
This problem was caused by a problem with the coordinate systems of the input data, not by the topography, and is now solved :)
When i want to interpolate soil layers with topography, theano produces a very long error message. It shows the hint "Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node. (Where) can you set this?
GemPy Code:
Console Output: