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
3ca17253
Commit
3ca17253
authored
May 01, 2020
by
POLCHER Jan
🚴🏾
Browse files
Reduces the output of the weight calculations.
parent
692c2249
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
RPPtools.py
RPPtools.py
+7
-2
No files found.
RPPtools.py
View file @
3ca17253
...
...
@@ -164,9 +164,14 @@ class compweights :
self
.
lat
=
sub_lat
self
.
hpts
=
[
l
.
shape
[
0
]
for
l
in
self
.
lon
]
self
.
maxhpts
=
max
(
self
.
hpts
)
nboverlap
=
[]
overlaperr
=
[]
for
icell
in
range
(
len
(
self
.
lon
))
:
INFO
(
str
(
icell
)
+
" Sum of overlap "
+
str
(
np
.
sum
(
self
.
area
[
icell
])
/
modelgrid
.
area
[
icell
])
+
" Nb of Hydro grid overlaping : "
+
str
(
self
.
hpts
[
icell
]))
nboverlap
.
append
(
self
.
hpts
[
icell
])
overlaperr
.
append
(
np
.
sum
(
self
.
area
[
icell
])
/
modelgrid
.
area
[
icell
])
#
INFO
(
str
(
part
.
rank
)
+
" Area Overlap error : "
+
str
(
min
(
overlaperr
))
+
"-"
+
str
(
max
(
overlaperr
))
+
\
" Nb of Hydro grid overlaping : "
+
str
(
min
(
self
.
hpts
))
+
"-"
+
str
(
max
(
self
.
hpts
))
)
#
self
.
dumpweights
(
wfile
,
part
,
modelgrid
,
hydrogrid
)
#
...
...
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