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
e3c679d2
Commit
e3c679d2
authored
4 years ago
by
Anne Philipp
Browse files
Options
Downloads
Patches
Plain Diff
BugFix for Ticket #286
parent
697b8d00
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
Run/Control/CONTROL_EA5
+0
-1
0 additions, 1 deletion
Run/Control/CONTROL_EA5
Source/Python/Classes/MarsRetrieval.py
+13
-3
13 additions, 3 deletions
Source/Python/Classes/MarsRetrieval.py
with
13 additions
and
4 deletions
Run/Control/CONTROL_EA5
+
0
−
1
View file @
e3c679d2
...
...
@@ -19,5 +19,4 @@ ETA 1
FORMAT GRIB2
PREFIX EA
CWC 1
RRINT 1
ECTRANS 1
This diff is collapsed.
Click to expand it.
Source/Python/Classes/MarsRetrieval.py
+
13
−
3
View file @
e3c679d2
...
...
@@ -504,13 +504,23 @@ class MarsRetrieval(object):
date
=
datetime
.
strptime
(
attrs
[
'
date
'
],
'
%Y%m%d
'
)
newattrs
[
'
year
'
]
=
date
.
year
newattrs
[
'
month
'
]
=
date
.
month
newattrs
[
'
day
'
]
=
date
.
day
newattrs
[
'
day
'
]
=
date
.
day
# need to correct the time apperance for CDS surface field retrievals
if
attrs
[
'
type
'
]
==
'
FC
'
:
# for EA5 only flux fields are retrieved as FC type
# need to convert fc start times 06/18 to usual AN times
# since the surface fields can only be access through their validity time
start
,
end
,
step
=
map
(
int
,
attrs
[
'
step
'
].
split
(
'
/
'
)[::
2
])
newattrs
[
'
time
'
]
=
[
"
{0:0=2d}
"
.
format
(
s
)
for
s
in
range
(
0
,
24
,
step
)
]
elif
'
/
'
in
attrs
[
'
time
'
]:
# we expect a list of times separated by /
newattrs
[
'
time
'
]
=
attrs
[
'
time
'
].
split
(
'
/
'
)
elif
isinstance
(
attrs
[
'
time
'
],
str
):
# we expect a single time in here
newattrs
[
'
time
'
]
=
[
attrs
[
'
time
'
]
]
newattrs
[
'
product_type
'
]
=
'
reanalysis
'
newattrs
[
'
area
'
]
=
attrs
[
'
area
'
].
split
(
'
/
'
)
newattrs
[
'
grid
'
]
=
list
(
map
(
float
,
attrs
[
'
grid
'
].
split
(
'
/
'
)))
newattrs
[
'
param
'
]
=
attrs
[
'
param
'
].
split
(
'
/
'
)
newattrs
[
'
time
'
]
=
list
(
map
(
str
,
range
(
0
,
24
,
3
)))
newattrs
[
'
param
'
]
=
attrs
[
'
param
'
].
split
(
'
/
'
)
newattrs
[
'
format
'
]
=
'
grib
'
return
newattrs
...
...
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