Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NearRealTimeCTDAS
CTDAS
Commits
a081bb37
Commit
a081bb37
authored
May 16, 2019
by
brunner
Browse files
extract logging not as frequent
parent
92a7baf3
Changes
1
Show whitespace changes
Inline
Side-by-side
da/cosmo/observationoperator_octe.py
View file @
a081bb37
...
@@ -184,7 +184,8 @@ class ObservationOperator(object):
...
@@ -184,7 +184,8 @@ class ObservationOperator(object):
for
dt
in
rrule
.
rrule
(
rrule
.
HOURLY
,
dtstart
=
to_datetime
(
dacycle
[
'abs.time.start'
])
+
timedelta
(
hours
=
hstart
),
until
=
to_datetime
(
dacycle
[
'abs.time.start'
])
+
timedelta
(
hours
=
hstop
)):
for
dt
in
rrule
.
rrule
(
rrule
.
HOURLY
,
dtstart
=
to_datetime
(
dacycle
[
'abs.time.start'
])
+
timedelta
(
hours
=
hstart
),
until
=
to_datetime
(
dacycle
[
'abs.time.start'
])
+
timedelta
(
hours
=
hstop
)):
dt
=
dt
.
strftime
(
'%Y%m%d%H'
)
dt
=
dt
.
strftime
(
'%Y%m%d%H'
)
logging
.
info
(
'Extracting output for ens %s, time %s'
%
(
str
(
ens
),
str
(
dt
)))
if
ens
==
"001"
:
logging
.
info
(
'Extracting output for time %s'
%
(
str
(
dt
)))
co2_in_fn
=
cosmo_out
+
'lffd'
+
dt
+
'.nc'
co2_in_fn
=
cosmo_out
+
'lffd'
+
dt
+
'.nc'
co2_out_jfj
=
cosmo_out
+
'CO2_jfj_'
+
ens
+
'_'
+
dt
+
'.nc'
co2_out_jfj
=
cosmo_out
+
'CO2_jfj_'
+
ens
+
'_'
+
dt
+
'.nc'
co2_out_lhw
=
cosmo_out
+
'CO2_lhw_'
+
ens
+
'_'
+
dt
+
'.nc'
co2_out_lhw
=
cosmo_out
+
'CO2_lhw_'
+
ens
+
'_'
+
dt
+
'.nc'
...
...
Write
Preview
Supports
Markdown
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