Skip to content

Commit

Permalink
Change mapping name waterfrac to standard name
Browse files Browse the repository at this point in the history
  • Loading branch information
vers-w committed Dec 11, 2024
1 parent 1256662 commit 24f9435
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 28 deletions.
9 changes: 3 additions & 6 deletions server/test/sbm_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ subcatchment = "wflow_subcatch"

atmosphere_air__snowfall_temperature_threshold = "TT"
atmosphere_air__snowfall_temperature_interval = "TTI"

"land~water-covered__area_fraction" = "WaterFrac"

snowpack__melting_temperature_threshold = "TTM"
snowpack__degree-day_coefficient = "Cfmax"
snowpack__liquid_water_holding_capacity = "WHC"
Expand Down Expand Up @@ -92,12 +95,6 @@ forcing = [

cyclic = ["vegetation__leaf-area_index"]

[input.vertical.runoff.parameters]
waterfrac = "WaterFrac"

[input.vertical.interception.parameters]
e_r = "EoverR"

[input.vertical.atmospheric_forcing]
potential_evaporation = "pet"
precipitation = "precip"
Expand Down
2 changes: 1 addition & 1 deletion src/surfacewater/runoff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function OpenWaterRunoffParameters(dataset, config, indices, riverfrac)
waterfrac = ncread(
dataset,
config,
"vertical.runoff.parameters.waterfrac";
"land~water-covered__area_fraction";
sel = indices,
defaults = 0.0,
type = Float,
Expand Down
6 changes: 3 additions & 3 deletions test/sbm_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ subcatchment = "wflow_subcatch"

atmosphere_air__snowfall_temperature_threshold = "TT"
atmosphere_air__snowfall_temperature_interval = "TTI"

"land~water-covered__area_fraction" = "WaterFrac"

snowpack__melting_temperature_threshold = "TTM"
snowpack__degree-day_coefficient = "Cfmax"
snowpack__liquid_water_holding_capacity = "WHC"
Expand Down Expand Up @@ -92,9 +95,6 @@ forcing = [

cyclic = ["vegetation__leaf-area_index"]

[input.vertical.runoff.parameters]
waterfrac = "WaterFrac"

[input.vertical.atmospheric_forcing]
potential_evaporation = "pet"
precipitation = "precip"
Expand Down
6 changes: 3 additions & 3 deletions test/sbm_gw.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ subcatchment = "wflow_subcatch"

atmosphere_air__snowfall_temperature_threshold = "TT"
atmosphere_air__snowfall_temperature_interval = "TTI"

"land~water-covered__area_fraction" = "WaterFrac"

snowpack__melting_temperature_threshold = "TTM"
snowpack__degree-day_coefficient = "Cfmax"

Expand Down Expand Up @@ -92,9 +95,6 @@ potential_evaporation = "pet"
precipitation = "precip"
temperature = "temp"

[input.vertical.runoff.parameters]
waterfrac = "WaterFrac"

[input.lateral.river]
length = "wflow_riverlength"
mannings_n = "N_River"
Expand Down
6 changes: 3 additions & 3 deletions test/sbm_gwf_piave_demand_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ gauges_grdc = "wflow_gauges_grdc"

atmosphere_air__snowfall_temperature_threshold = "TT"
atmosphere_air__snowfall_temperature_interval = "TTI"

"land~water-covered__area_fraction" = "WaterFrac"

snowpack__melting_temperature_threshold = "TTM"
snowpack__degree-day_coefficient = "Cfmax"
snowpack__liquid_water_holding_capacity = "WHC"
Expand Down Expand Up @@ -121,9 +124,6 @@ potential_evaporation = "pet"
precipitation = "precip"
temperature = "temp"

[input.vertical.runoff.parameters]
waterfrac = "WaterFrac"

[model.water_demand]
domestic = true
industry = true
Expand Down
6 changes: 3 additions & 3 deletions test/sbm_piave_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ gauges_grdc = "wflow_gauges_grdc"

atmosphere_air__snowfall_temperature_threshold = "TT"
atmosphere_air__snowfall_temperature_interval = "TTI"

"land~water-covered__area_fraction" = "WaterFrac"

snowpack__melting_temperature_threshold = "TTM"
snowpack__degree-day_coefficient = "Cfmax"

Expand Down Expand Up @@ -102,9 +105,6 @@ potential_evaporation = "pet"
precipitation = "precip"
temperature = "temp"

[input.vertical.runoff.parameters]
waterfrac = "WaterFrac"

[state.lateral.river.variables]
q = "q_river"
h = "h_river"
Expand Down
6 changes: 3 additions & 3 deletions test/sbm_piave_demand_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ gauges_grdc = "wflow_gauges_grdc"

atmosphere_air__snowfall_temperature_threshold = "TT"
atmosphere_air__snowfall_temperature_interval = "TTI"

"land~water-covered__area_fraction" = "WaterFrac"

snowpack__melting_temperature_threshold = "TTM"
snowpack__degree-day_coefficient = "Cfmax"

Expand Down Expand Up @@ -115,9 +118,6 @@ potential_evaporation = "pet"
precipitation = "precip"
temperature = "temp"

[input.vertical.runoff.parameters]
waterfrac = "WaterFrac"

[model.water_demand]
domestic = true
industry = true
Expand Down
6 changes: 3 additions & 3 deletions test/sbm_simple.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ subcatchment = "wflow_subcatch"

atmosphere_air__snowfall_temperature_threshold = "TT"
atmosphere_air__snowfall_temperature_interval = "TTI"

"land~water-covered__area_fraction" = "WaterFrac"

snowpack__melting_temperature_threshold = "TTM"
snowpack__degree-day_coefficient = "Cfmax"

Expand Down Expand Up @@ -64,9 +67,6 @@ potential_evaporation = "pet"
precipitation = "precip"
temperature = "temp"

[input.vertical.runoff.parameters]
waterfrac = "WaterFrac"

[input.lateral.river]
length = "wflow_riverlength"
n = "N_River"
Expand Down
6 changes: 3 additions & 3 deletions test/sbm_swf_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ subcatchment = "wflow_subcatch"

atmosphere_air__snowfall_temperature_threshold = "TT"
atmosphere_air__snowfall_temperature_interval = "TTI"

"land~water-covered__area_fraction" = "WaterFrac"

snowpack__melting_temperature_threshold = "TTM"
snowpack__degree-day_coefficient = "Cfmax"

Expand Down Expand Up @@ -93,9 +96,6 @@ potential_evaporation = "pet"
precipitation = "precip"
temperature = "temp"

[input.vertical.runoff.parameters]
waterfrac = "WaterFrac"

[input.lateral.river]
length = "wflow_riverlength"
mannings_n = "N_River"
Expand Down

0 comments on commit 24f9435

Please sign in to comment.