Closed Wh20-fly closed 4 years ago
Hello,
Could you specify your question?
What have you tried so far?
GemPy has a built in function to set the topography of a model and there is also a tutorial called Topography that describes how to set the topography in GemPy.
If you need to work with your tif in python for other purposes, just load it as an numpy array.
Cheers Alex
Hi, @AlexanderJuestel . There is a photo about DTM from GemPy's example,but now I can't find where it is from ,do you know.
Hello,
I unfortunately do not know where this image is from. However, it seems very similar to images posted on Neosciences.org.
What I am still missing is the objective of your issue? Do you have issues converting your tif to a DEM or anything else? Or would you like to display the hillshades as shown in the image above? Please specify.
Cheers Alex
Hi, @AlexanderJuestel Is there easy way to make .tif format file become DEM and DTM?
Hello,
please ellaborate more on the purpose.
Do you need a DEM for GemPy? Then GemPy has a function called geo_model.set_topography(...)
to do that automatically.
A Digital Terrain Model (DTM) or hillshades can be generated in the upcoming release of GemPy automatically as well to aid interpretation of your geological maps computed from the model.
If you need it as a numpy array, then I can for instance refer you to the following thread on Stackoverflow: Working with TIFFs (import, export) in Python using numpy
What is your question? Is there any code tutorial about making original elevation data(.tif format) become Digital elevation model,thank you very much.