SliDEM-project / SliDEM-python

Python package for the SliDEM project
https://hub.docker.com/repository/docker/loreabad6/slidem
Apache License 2.0
17 stars 2 forks source link

Accuracy assessment in a loop #43

Closed ZahraDabiri closed 1 year ago

ZahraDabiri commented 1 year ago

SyntaxError: invalid syntax File "//scripts/3_assess_accuracy.py", line 406 match coregister_name:

loreabad6 commented 1 year ago

Hi @ZahraDabiri. Please when you get an error can you copy also which command you used that got you into that error. Then it is easier to debug because when you put just the error I do not have any context. For instance, did you try to pass different coregistration methods to the --coregistration_method flag? All this things help finding the problem. Thank you!

ZahraDabiri commented 1 year ago

@loreabad6. I didn't define --coregistrationmethod. I assume, it should take the default one "Deramping". here is the whole comment: for file in $(find home/data/results/Gjerdrum/Descending -maxdepth 1 -name "out*" -type d | cut -d'/' -f2-); do python -W ignore scripts/3_assess_accuracy.py --s1_dem_dir ${file} --unstable_area_path data/aoi/Norway/Gjedrum_unstable_area.gpkg --ref_dem_path data/ReferenceDEM/Gjerdrum/NASADEM_60.047054289127395_11.007823261230051_60.07724219219788_11.088872048347087.tif --ref_dem_name NASADEM --elev_diff_min_max 100 --lulc_path data/LULC/ESA_WorldCover_10m_2020_v100_N60E009_Map.tif --coregister done

ZahraDabiri commented 1 year ago

The error is removed by activating xdem: "conda activate xdem-dev" before running the script!