From 5578cc15ad16cff6374a1d2033ab6e0868f13f1e Mon Sep 17 00:00:00 2001 From: Michael Rabotin <michael.rabotin@inrae.fr> Date: Thu, 19 Jan 2023 11:36:28 +0100 Subject: [PATCH] updated data example --- data_exemple_ardeche/hrudelin_config.cfg | 159 ------------------ .../hrudelin_config_ardeche.cfg | 10 +- 2 files changed, 5 insertions(+), 164 deletions(-) delete mode 100644 data_exemple_ardeche/hrudelin_config.cfg diff --git a/data_exemple_ardeche/hrudelin_config.cfg b/data_exemple_ardeche/hrudelin_config.cfg deleted file mode 100644 index 12a89cb..0000000 --- a/data_exemple_ardeche/hrudelin_config.cfg +++ /dev/null @@ -1,159 +0,0 @@ -# ----------- -# environment -# ----------- - -[dir_in] -dir: - -[dem] -dem: - - -[data] -hgeo: -landuse: -soil: - - -[gauges] -gauges: -#for watershed ID, used for identification of watersheds -gauges_col_name= -# drained surface -gauges_area_col_name= -relocated_gauges= - - -[irrigation] -# yes or no -to_do: -irrigation: -irrig_col_name= -#for irrig_col_type, 2 for groundwater and 3 for surfaceirrig_col_type= - -# you can indicate a minimum surface value for an HRU to be a GU: -#minimum surface can be null, global (irrig_surf_min_GU) or spatialized (irrig_col_min_GU) -irrig_surf_min_GU= -irrig_col_min_GU= -#you can specify a maximum distance search for GU (default is 5000 m -irrig_distance_GU=5000 - -irrigation_sector: -irrig_sector_col_name= -irrig_col_sau_irr= -irrig_col_dom_sau_irr= -irrigation_table: -relocated_irrigation= - -[dams] -# yes or no -to_do: -dams= -dams_col_name= -dams_smax= -dams_s0= -#drained surface -dams_area_col_name= -relocated_dams= - -[dir_out] -files: -results: -# ------------------------- -# 1st step : hru-delin_init -# ------------------------- - -[surface] -#selection: total -> full dem -# polygon -> polygon: name of the shapefile -# coords -> give the coords upper left (west and north) and lower right (east and south) -selection: -polygon: -west: -north: -east: -south: - - -[demfill] -# -# if demfill = yes : depressionless DEM will be generated -# no : no action on input DEM -# -demfill: - -# -# if rules_auto_* = yes : rules will be calculated by the module -# if no : fill the corresponding file (reclass_default_rules_*) -# -[reclass_dem] -rules_auto_dem: -step_dem: - -[reclass_slope] -rules_auto_slope: - -[reclass_aspect] -rules_auto_aspect: - -[basin_min_size] -# minimum size of calculated watersheds (r.watershed) -# number of pixels -# size = N = SURFACE_km2 / ( RES_km2^2 ) -# ex: S = 10km2, RES = 200m = 0.2 km ==> N = 250 pixels -# S = 20km2, RES = 90m = 0.09 km ==> N = 2469 pixels -size= - -# --------------------------- -# 2nd step : hru-delin_basins -# --------------------------- -# So it's possible to specify a variable using : or = ??? -[auto_relocation] -# yes or no -to_do: -# -------- first rule -# surface is in percent! -# distance is in pixels: N = D / RES -# example: for 3km distance with a 50m DEM, the number of pixel is: 3000/50 = 33 pixels -surface_tolerance_1= -distance_tolerance_1= -# -------- second rule -# second rule with a distance tolerance of 6km and a surface tolerance of 30% -surface_tolerance_2= -distance_tolerance_2=120 - -# unit = 1 : m , = 2 : km -area_unit= - - - -# --------------------------- -# 3rd step : hru-delin_hrugen -# --------------------------- - -[hrus_min_surface] -# there, this is in pixel so pay attention to the DEM resolution -# same as for bassin_min_size: N = SURFACE_km2 / ( RES_km2^2 ) # see 'size' parameter in step 1 for examples -# 2 km2 = 247 pixels -surface= - -# -# MNT-derived layers to be integrated in the overlay operation -# -[layer_overlay] -# yes or no -dem: -slope: -aspect: - -# -------------------------------- -# 4th step : hru-delin_parms_J2000 -# -------------------------------- -# yes or no -[topology] -dissolve_cycle: -hru_no_topology_log: -OF_domain_export: -[hru_param] -hru_cat: -hru_landuse: diff --git a/data_exemple_ardeche/hrudelin_config_ardeche.cfg b/data_exemple_ardeche/hrudelin_config_ardeche.cfg index 47a1027..eb21059 100644 --- a/data_exemple_ardeche/hrudelin_config_ardeche.cfg +++ b/data_exemple_ardeche/hrudelin_config_ardeche.cfg @@ -3,7 +3,7 @@ # ----------- [dir_in] -dir:/home/michael.rabotin/temporaires/ardeche/data_exemple_ardeche +dir:/home/michael.rabotin/temporaires/data_exemple_ardeche [dem] dem:ih_ardeche_dem50m_grass_1.tif @@ -56,8 +56,8 @@ dams_area_col_name=S_BH relocated_dams= [dir_out] -files:/home/michael.rabotin/temporaires/ardeche/data_exemple_ardeche/out_files -results:/home/michael.rabotin/temporaires/ardeche/data_exemple_ardeche/out_results +files:/home/michael.rabotin/temporaires/data_exemple_ardeche/out_files +results:/home/michael.rabotin/temporaires/data_exemple_ardeche/out_results # ------------------------- # 1st step : hru-delin_init # ------------------------- @@ -66,8 +66,8 @@ results:/home/michael.rabotin/temporaires/ardeche/data_exemple_ardeche/out_resul #selection: total -> full dem # polygon -> polygon: name of the shapefile # coords -> give the coords upper left (west and north) and lower right (east and south) -selection:polygon -polygon:boundaries.shp +selection:total +polygon: west: north: east: -- GitLab