Closed BenjiDa closed 2 years ago
In the csv file the column headers must include "latitude" and "longitude" (so no "outlet_"). Other tips: 1) in the DEM if there are no junctions below your selected point the basin extraction might fail. So make sure you are upstream of at least 1 junction 2) Any basins with pixels along an edge will be removed, so make sure you have complete basins 3) You can reduce the threshold contributing pixels so there are many junctions, this means your selected point will be close to the nearest junction. Let me know if this fixes the problem.
I have updated the docker container with newer versions and have tested this notebook against it: https://github.com/LSDtopotools/lsdtt_notebooks/blob/master/lsdtopotools/basin_selection.ipynb
Yes, thanks, that worked!
Description
I am trying to run chi analysis on several basins and am trying to select certain basins based on a junction number. I selected the outlet junctions using the AllBasinsInfo in QGIS and put the numbers into a .txt file and ran the following code.
What I Did
First I ran the following code using a Junctions.txt with the junction numbers.
This runs the analysis but does not remove any of the unwanted basins.
So looking at the LSDTopoTools repo I found info on the BaselevelJunctions file method:
"An old method. You should use get_basins_from_outlets: true and basin_outlet_csv instead."
So I reran using this, with the lat, lon positions and junction numbers saved in a csv (outlet.csv):
and this fails with:
and