Commit b866f085 authored by POLCHER Jan's avatar POLCHER Jan 🚴🏾
Browse files

A small error corrected on the variables archived in the graph file.

parent 49698608
...@@ -268,21 +268,21 @@ class HydroParameter : ...@@ -268,21 +268,21 @@ class HydroParameter :
self.fast_tcst = 3.0 self.fast_tcst = 3.0
self.slow_tcst = 25.0 self.slow_tcst = 25.0
self.flood_tcst = 4.0 self.flood_tcst = 4.0
self.swamp_tcst = 0.2 self.swamp_cst = 0.2
elif hydrogrid.hd >= 0.016 : elif hydrogrid.hd >= 0.016 :
# Case for MERIT # Case for MERIT
self.stream_tcst = 0.7 self.stream_tcst = 0.7
self.fast_tcst = 1.0 self.fast_tcst = 1.0
self.slow_tcst = 10.0 self.slow_tcst = 10.0
self.flood_tcst = 4.0 self.flood_tcst = 4.0
self.swamp_tcst = 0.2 self.swamp_cst = 0.2
elif hydrogrid.hd >= 0.008 : elif hydrogrid.hd >= 0.008 :
# Case for HydroSEHDS # Case for HydroSEHDS
self.stream_tcst = 0.01 self.stream_tcst = 0.01
self.fast_tcst = 0.5 self.fast_tcst = 0.5
self.slow_tcst = 7.0 self.slow_tcst = 7.0
self.flood_tcst = 4.0 self.flood_tcst = 4.0
self.swamp_tcst = 0.2 self.swamp_cst = 0.2
else : else :
print("For the resolution ",hydrogrid.hd," deg. we do not yet have a parameter set.") print("For the resolution ",hydrogrid.hd," deg. we do not yet have a parameter set.")
sys.exit sys.exit
...@@ -200,7 +200,7 @@ def addparameters(outnf, part, tcst, vtyp, NCFillValue) : ...@@ -200,7 +200,7 @@ def addparameters(outnf, part, tcst, vtyp, NCFillValue) :
swamp = outnf.createVariable("SwampCst", vtyp, ('dimpara'), fill_value=NCFillValue) swamp = outnf.createVariable("SwampCst", vtyp, ('dimpara'), fill_value=NCFillValue)
swamp.title = "Fraction of the river transport that flows to the swamps" swamp.title = "Fraction of the river transport that flows to the swamps"
swamp.units = "-" swamp.units = "-"
swamp[:] = tcst.flood_tcst swamp[:] = tcst.swamp_cst
return return
# #
# #
......
Markdown is supported
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