Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flex Extract
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Flexpart
Flex Extract
Commits
9e5219b2
Commit
9e5219b2
authored
8 months ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
separate clwc and ciwc
parent
7271b6fa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Python/Classes/EcFlexpart.py
+8
-13
8 additions, 13 deletions
Source/Python/Classes/EcFlexpart.py
with
8 additions
and
13 deletions
Source/Python/Classes/EcFlexpart.py
+
8
−
13
View file @
9e5219b2
...
...
@@ -1572,9 +1572,10 @@ class EcFlexpart(object):
# which are used to seperate the grib fields to,
# for the Fortran program input
# 10: U,V | 11: T | 12: lnsp | 13: D | 16: sfc fields
# 17: Q | 18: Q, SL, GG| 19: omega | 21: etadot | 22: clwc
+
ciwc
# 17: Q | 18: Q, SL, GG| 19: omega | 21: etadot | 22: clwc
| 23:
ciwc
fdict
=
{
'
10
'
:
None
,
'
11
'
:
None
,
'
12
'
:
None
,
'
13
'
:
None
,
'
16
'
:
None
,
'
17
'
:
None
,
'
18
'
:
None
,
'
19
'
:
None
,
'
21
'
:
None
,
'
22
'
:
None
}
'
17
'
:
None
,
'
18
'
:
None
,
'
19
'
:
None
,
'
21
'
:
None
,
'
22
'
:
None
,
'
23
'
:
None
}
iid
=
None
index_vals
=
None
...
...
@@ -1679,16 +1680,10 @@ class EcFlexpart(object):
codes_write
(
gid
,
fdict
[
'
12
'
])
elif
paramId
==
155
and
gridtype
==
'
sh
'
:
# D
codes_write
(
gid
,
fdict
[
'
13
'
])
elif
paramId
==
246
or
paramId
==
247
:
# CLWC, CIWC
# sum cloud liquid water and ice
if
scwc
is
None
:
scwc
=
codes_get_values
(
gid
)
else
:
scwc
+=
codes_get_values
(
gid
)
codes_set_values
(
gid
,
scwc
)
codes_set
(
gid
,
'
paramId
'
,
201031
)
elif
paramId
==
246
:
# CLWC
codes_write
(
gid
,
fdict
[
'
22
'
])
scwc
=
None
elif
paramId
==
247
:
# CIWC
codes_write
(
gid
,
fdict
[
'
23
'
])
# @WRF
# THIS IS NOT YET CORRECTLY IMPLEMENTED !!!
#
...
...
@@ -1792,7 +1787,7 @@ class EcFlexpart(object):
if
not
c
.
cwc
:
flist
=
[
'
fort.15
'
,
fluxfile
,
'
fort.16
'
,
orolsm
]
else
:
flist
=
[
'
fort.15
'
,
'
fort.22
'
,
fluxfile
,
'
fort.16
'
,
orolsm
]
flist
=
[
'
fort.15
'
,
'
fort.22
'
,
'
fort.23
'
,
fluxfile
,
'
fort.16
'
,
orolsm
]
with
open
(
fnout
,
'
wb
'
)
as
fout
:
for
f
in
flist
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment