badlands-model / badlands

Basin and Landscape Dynamics model
https://badlands.readthedocs.io
GNU General Public License v3.0
144 stars 44 forks source link

how to crate the tectonic motion using the code directly #43

Open zhifengmuyun opened 3 weeks ago

zhifengmuyun commented 3 weeks ago

Hello! I am very sorry to bother you again with a similar question. I learnt about the construction of the initial elevation of the surface and tectonic motion in the companion folder, but I didn't find out how to generate a tectonic file with 3D displacements as used in examples like rift or strike slip in the examples folder. Specifically, I would like to be able to use the code to specify the location of the fault in the study area, geometric elements such as the strike of the fault, and the slip rate. Can this be done using bandands? Thank you for your help!

GeoMattB commented 1 week ago

Hi, the displacement is specified as the distance that each point in the topography file moves and is limited to the resolution of your initial grid. You can't use a fault directly. Rate will be controlled by the start and end time in the tectonic scenarios. Z displacement is relatively simple as that is usually the end state you wish to attain. X and Y displacement I created by loading my XYZ topography points into QGIS, saving that as a geopackage and then adding the geometry attributes in QGIS to the gpkg (the original XYZ get saved as attributes). I then select the points within each fault block (using polygon selection) and move / drag those points by the slip amount and direction required. Then generate a new set of geometry attributes (the moved XYZ). Then its a simple originalX-movedX=dx etc to create the dx you need as an input for Badlands. I ended up doing most of the input data creation in QGIS and saving the output to a gpkg file. Then used geo-pandas to create the badlands text file inputs.

My workflow was influenced by the tools I know how to use so there may be better ways to do this. If it's useful maybe I should make a youtubes or something.