Closed AlexanderJuestel closed 2 years ago
@Leguark see this issue for the problem with the rotated geological map ;)
Hi @AlexanderJuestel ,how the upper model construct,do you have the code making the upper 3D geological model,thank you.
Hey @wh19971014,
This was just a sample model. The code originated from the documentation and tutorials of GemPy. I just changed the input data. So, just have a look there.
https://docs.gempy.org/tutorials/index.html
Cheers Alex
@Leguark, got the same problem for another model now ;)
It seems that's an issue with the DEM loading process. If you change the line
to something like
shape = self.model._grid.topography.values_2d[:, :, 2].shape
it seems to work (with also transposing the block data after reshape, to correct for the flip). As far as I have understood, the issue seems to be related with the fact that the grid for the topography is first created from the block model grid, taking from it its resolution, and that's not updated after the DEM is loaded using GDAL:
As set_value doesn't change the resolution attribute.
can some of you to create a test (somewhere in test/test_core/test_grids) replicating one of the models that fail and make a pull request?
I agree with @endarthur that the problem seems to be in the LoadDEMGDAL class but without debugging I cannot tell
@endarthur this we need to tackle!
@Leguark Do you think we could fix that for the next release that you indicated? It has bothered me a long time now :D But we haven't made any tests yet.
Maybe @endarthur has the time to create some soon :)
Will be fixed in #640
It seems like the issue does not appear in GemPy 2.2.9 anymore. Will keep it open until #640 is merged
Describe the bug Using the new plottig API, the geological map does not fit the input data (see image). The issue was observed in two independent projects.
The geological map was created using:
In addition, surfaces do not appear in interactive 3D plots. However, the geological map is oriented correctly in this case.
The 3D plot was created using:
Expected behavior The geological map should fit to the input data and surfaces should be displayed in the 3D plot.
Screenshots Geological map oriented incorrectly If applicable, add screenshots to help explain your problem.
Missing surfaces in 3D plot
Correctly oriented geological map
Desktop (please complete the following information):