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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Flexpart
Flex Extract
Commits
b9ce98cd
Commit
b9ce98cd
authored
2 years ago
by
Anne Tipka
Browse files
Options
Downloads
Patches
Plain Diff
added CONTROL file option for grib compression type / set packingType parameter in grib messages
parent
7c4bd597
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/Python/Classes/ControlFile.py
+4
-0
4 additions, 0 deletions
Source/Python/Classes/ControlFile.py
Source/Python/Classes/EcFlexpart.py
+10
-0
10 additions, 0 deletions
Source/Python/Classes/EcFlexpart.py
with
14 additions
and
0 deletions
Source/Python/Classes/ControlFile.py
+
4
−
0
View file @
b9ce98cd
...
...
@@ -228,6 +228,9 @@ class ControlFile(object):
Switch to select further parameters for retrievment to support
WRF simulations. Default value is 0.
compression : str
Compression type for grib messages. Standard is
"
grid_simple
"
.
ecfsdir : str
Path to the ECMWF storage
'
ectmp:/${USER}/econdemand/
'
...
...
@@ -395,6 +398,7 @@ class ControlFile(object):
self
.
prefix
=
'
EN
'
self
.
cwc
=
0
self
.
wrf
=
0
self
.
compression
=
'
grid_simple
'
self
.
ecfsdir
=
'
ectmp:/${USER}/econdemand/
'
self
.
mailfail
=
[
'
${USER}
'
]
self
.
mailops
=
[
'
${USER}
'
]
...
...
This diff is collapsed.
Click to expand it.
Source/Python/Classes/EcFlexpart.py
+
10
−
0
View file @
b9ce98cd
...
...
@@ -1901,6 +1901,16 @@ class EcFlexpart(object):
error_msg
=
'
RENAMING FOR NEW GRIB2 FORMAT
'
'
FILES FAILED!
'
)
if
c
.
compression
.
lower
()
!=
'
grid_simple
'
:
execute_subprocess
([
'
grib_set
'
,
'
-r
'
,
'
-s
'
,
'
packingType=
'
+
c
.
compression
,
ofile
,
ofile
+
'
_2
'
],
error_msg
=
'
GRIB COMPRESSION FAILED!
'
)
execute_subprocess
([
'
mv
'
,
ofile
+
'
_2
'
,
ofile
],
error_msg
=
'
RENAMING FOR NEW GRIB COMPRESSION
'
'
FILES FAILED!
'
)
if
c
.
ectrans
and
_config
.
FLAG_ON_ECMWFSERVER
:
execute_subprocess
([
'
ectrans
'
,
'
-overwrite
'
,
'
-gateway
'
,
c
.
gateway
,
'
-remote
'
,
c
.
destination
,
...
...
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