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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DataAssimilation
DART-WRF
Commits
72c783c3
Commit
72c783c3
authored
4 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
92e4bf77
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/run_obs_diag.py
+3
-2
3 additions, 2 deletions
scripts/run_obs_diag.py
with
3 additions
and
2 deletions
scripts/run_obs_diag.py
+
3
−
2
View file @
72c783c3
import
os
,
sys
,
shutil
,
glob
from
config.cfg
import
exp
,
cluster
from
utils
import
symlink
,
copy
,
sed_inplace
,
append_file
from
.
utils
import
symlink
,
copy
,
sed_inplace
,
append_file
rundir_program
=
'
/home/fs71386/lkugler/data/DART-WRF/rundir/
'
...
...
@@ -58,7 +58,7 @@ def run_obs_seq_to_netcdf(filepaths, f_out='./obs_epoch.nc'):
write_input_filelist
(
filepaths
)
print
(
'
------ running obs_seq_to_netcdf program
'
)
shutil
.
copy
(
cluster
.
dart_srcdir
+
'
/obs_seq_to_netcdf-bak
'
,
rundir_program
+
'
/obs_seq_to_netcdf
'
)
#
shutil.copy(cluster.dart_srcdir+'/obs_seq_to_netcdf-bak', rundir_program+'/obs_seq_to_netcdf')
os
.
chdir
(
rundir_program
)
os
.
system
(
'
./obs_seq_to_netcdf >& obs_seq_to_netcdf.log
'
)
# caution, overwrites its own binary?!
shutil
.
move
(
rundir_program
+
'
/obs_epoch_001.nc
'
,
f_out
)
...
...
@@ -67,6 +67,7 @@ def run_obs_seq_to_netcdf(filepaths, f_out='./obs_epoch.nc'):
if
__name__
==
'
__main__
'
:
#folder_obs_seq_final = '/home/fs71386/lkugler/data/DART-WRF/rundir/test'
print
(
'
python run_obs_diag.py
'
)
folder_obs_seq_final
=
str
(
sys
.
argv
[
1
])
files
=
sorted
(
glob
.
glob
(
folder_obs_seq_final
+
'
/*.final
'
))
# input for obs_diag program
...
...
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