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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
IPSL
LMD
InTro
RoutingPP
Commits
711f4d63
Commit
711f4d63
authored
Oct 21, 2021
by
POLCHER Jan
🚴🏾
Browse files
A estimation of the maximu stream time step which is more realistic.
parent
2ecb541b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
GraphHydro.py
GraphHydro.py
+1
-1
No files found.
GraphHydro.py
View file @
711f4d63
...
...
@@ -277,7 +277,7 @@ class HydroGraph :
ncvar
.
units
=
"count"
ncvar
[:]
=
thist
[:]
#
maxtstep
=
weighted_quantile
(
gvar
[
~
np
.
isnan
(
gvar
)]
*
usedtcst
,
0.5
0
,
sample_weight
=
garea
[
~
np
.
isnan
(
gvar
)])
maxtstep
=
weighted_quantile
(
gvar
[
~
np
.
isnan
(
gvar
)]
*
usedtcst
,
0.
2
5
,
sample_weight
=
garea
[
~
np
.
isnan
(
gvar
)])
mtstep
=
outnf
.
createVariable
(
"MaxTimeStep"
+
addname
,
vtyp
,
(
'dimpara'
),
fill_value
=
NCFillValue
)
if
addname
.
lower
()
==
"stream"
:
mtstep
.
title
=
"Maximum time-step for stream reservoir of HTUs"
...
...
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