Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
DataAssimilation
DART-WRF
Commits
4a54ee43
Commit
4a54ee43
authored
1 year ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
prep RTTOV paths
parent
ecc05ceb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dartwrf/assimilate.py
+12
-13
12 additions, 13 deletions
dartwrf/assimilate.py
with
12 additions
and
13 deletions
dartwrf/assimilate.py
+
12
−
13
View file @
4a54ee43
...
...
@@ -493,12 +493,16 @@ def link_DART_binaries_and_RTTOV_files():
symlink
(
joinp
(
cluster
.
dart_srcdir
,
b
),
joinp
(
cluster
.
dart_rundir
,
b
))
symlink
(
cluster
.
dart_srcdir
+
'
/../../../assimilation_code/programs/gen_sampling_err_table/
'
+
'
work/sampling_error_correction_table.nc
'
,
cluster
.
dart_rundir
+
'
/sampling_error_correction_table.nc
'
)
# link RTTOV files
rttov_files
=
[
'
rttov13pred54L/rtcoef_msg_4_seviri_o3.dat
'
,
'
mfasis_lut/rttov_mfasis_cld_msg_4_seviri_deff.H5
'
,
'
cldaer_visir/sccldcoef_msg_4_seviri.dat
'
]
if
cluster
.
rttov_srcdir
!=
False
:
rttov_files
=
[
'
rttov13pred54L/rtcoef_msg_4_seviri_o3.dat
'
,
'
mfasis_lut/rttov_mfasis_cld_msg_4_seviri_deff.H5
'
,
'
cldaer_visir/sccldcoef_msg_4_seviri.dat
'
]
try
:
# may fail quietly if we dont need RTTOV
for
f_src
in
rttov_files
:
destname
=
os
.
path
.
basename
(
f_src
)
if
'
rtcoef
'
in
f_src
:
...
...
@@ -513,17 +517,12 @@ def link_DART_binaries_and_RTTOV_files():
symlink
(
cluster
.
dart_srcdir
+
'
/../../../observations/forward_operators/rttov_sensor_db.csv
'
,
cluster
.
dart_rundir
+
'
/rttov_sensor_db.csv
'
)
symlink
(
cluster
.
dart_srcdir
+
'
/../../../assimilation_code/programs/gen_sampling_err_table/
'
+
'
work/sampling_error_correction_table.nc
'
,
cluster
.
dart_rundir
+
'
/sampling_error_correction_table.nc
'
)
print
(
'
prepared DART & RTTOV links in
'
,
cluster
.
dart_rundir
)
except
Exception
as
e
:
# will any satellite channel be assimilated?
else
:
# check if we need RTTOV, but rttov_srcdir is not set
for
obscfg
in
exp
.
observations
:
if
'
sat_channel
'
in
obscfg
:
raise
e
pass
# we dont need RTTOV anyway
raise
RuntimeError
(
'
cluster.rttov_srcdir not set, but satellite channel will be assimilated
'
)
def
prepare_run_DART_folder
():
os
.
makedirs
(
cluster
.
dart_rundir
,
exist_ok
=
True
)
# create directory to run DART in
...
...
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