Commit e6a18ba7 authored by Aurore Dupuis's avatar Aurore Dupuis
Browse files

Add test on shaded snow

parent b7e418ba
......@@ -151,6 +151,10 @@ if __name__ == "__main__":
logging.info("tree cover density : %s", args.tcd)
tcd = args.tcd
if args.relief_shadow_mask is not None:
logging.info("relief shadow mask : %s", args.relief_shadow_mask)
relief_shadow_mask = args.relief_shadow_mask
if args.chain_version is not None:
logging.info("chain version : %s", args.chain_version)
h2_chain_version = args.chain_version
......
......@@ -268,6 +268,28 @@ add_test(NAME s2_compare_final_mask_test
)
set_tests_properties(s2_compare_final_mask_test PROPERTIES DEPENDS s2_test)
# -------------------------
# Shaded snow
# -------------------------
add_test(NAME shaded_snow_test
COMMAND ${PYTHON_EXECUTABLE}
${CMAKE_BINARY_DIR}/app/let_it_snow_fsc.py
-c ${DATA_TEST}/S2/shaded_snow/global_parameters_shaded_snow.json
-i ${DATA_TEST}/S2/SENTINEL2B_20210124-103807-070_L2A_T31TGM_C_V1-0
-d "${DATA_TEST}/S2/SENTINEL2B_20210124-103807-070_L2A_T31TGM_C_V1-0/Leman_dem_merged.tif"
-s "${DATA_TEST}/S2/SENTINEL2B_20210124-103807-070_L2A_T31TGM_C_V1-0/hillshade_mask.tif"
-o ${OUTPUT_TEST}/s2/shaded_snow
)
add_test(NAME shaded_snow_no_relief_shadow_mask_test
COMMAND ${PYTHON_EXECUTABLE}
${CMAKE_BINARY_DIR}/app/let_it_snow_fsc.py
-c ${DATA_TEST}/S2/shaded_snow/global_parameters_shaded_snow.json
-i ${DATA_TEST}/S2/SENTINEL2B_20210124-103807-070_L2A_T31TGM_C_V1-0
-d "${DATA_TEST}/S2/SENTINEL2B_20210124-103807-070_L2A_T31TGM_C_V1-0/Leman_dem_merged.tif"
-o ${OUTPUT_TEST}/s2/shaded_snow_no_relief_shadow_mask
)
# -------------------------
# Synthesis
# -------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment