Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IPSL
LMD
InTro
RoutingPP
Commits
b866f085
Commit
b866f085
authored
Jul 11, 2020
by
POLCHER Jan
🚴🏾
Browse files
A small error corrected on the variables archived in the graph file.
parent
49698608
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
HydroGrid.py
HydroGrid.py
+3
-3
Interface.py
Interface.py
+1
-1
No files found.
HydroGrid.py
View file @
b866f085
...
...
@@ -268,21 +268,21 @@ class HydroParameter :
self
.
fast_tcst
=
3.0
self
.
slow_tcst
=
25.0
self
.
flood_tcst
=
4.0
self
.
swamp_
t
cst
=
0.2
self
.
swamp_cst
=
0.2
elif
hydrogrid
.
hd
>=
0.016
:
# Case for MERIT
self
.
stream_tcst
=
0.7
self
.
fast_tcst
=
1.0
self
.
slow_tcst
=
10.0
self
.
flood_tcst
=
4.0
self
.
swamp_
t
cst
=
0.2
self
.
swamp_cst
=
0.2
elif
hydrogrid
.
hd
>=
0.008
:
# Case for HydroSEHDS
self
.
stream_tcst
=
0.01
self
.
fast_tcst
=
0.5
self
.
slow_tcst
=
7.0
self
.
flood_tcst
=
4.0
self
.
swamp_
t
cst
=
0.2
self
.
swamp_cst
=
0.2
else
:
print
(
"For the resolution "
,
hydrogrid
.
hd
,
" deg. we do not yet have a parameter set."
)
sys
.
exit
Interface.py
View file @
b866f085
...
...
@@ -200,7 +200,7 @@ def addparameters(outnf, part, tcst, vtyp, NCFillValue) :
swamp
=
outnf
.
createVariable
(
"SwampCst"
,
vtyp
,
(
'dimpara'
),
fill_value
=
NCFillValue
)
swamp
.
title
=
"Fraction of the river transport that flows to the swamps"
swamp
.
units
=
"-"
swamp
[:]
=
tcst
.
flood_t
cst
swamp
[:]
=
tcst
.
swamp_
cst
return
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment