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
c83b650f
Commit
c83b650f
authored
1 year ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
consistency obskind
parent
d8faacf5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dartwrf/create_obsseq.py
+1
-1
1 addition, 1 deletion
dartwrf/create_obsseq.py
dartwrf/workflows.py
+3
-3
3 additions, 3 deletions
dartwrf/workflows.py
with
4 additions
and
4 deletions
dartwrf/create_obsseq.py
+
1
−
1
View file @
c83b650f
...
@@ -14,7 +14,7 @@ from dartwrf import utils
...
@@ -14,7 +14,7 @@ from dartwrf import utils
#####################
#####################
# Global variables
# Global variables
from
config
.obskind
import
obs_kind_nrs
# DART internal indices
from
dartwrf
.obskind
import
obs_kind_nrs
# DART internal indices
# position on earth for RTTOV ray geometry
# position on earth for RTTOV ray geometry
lat0
=
45.
lat0
=
45.
...
...
This diff is collapsed.
Click to expand it.
dartwrf/workflows.py
+
3
−
3
View file @
c83b650f
...
@@ -121,7 +121,7 @@ class WorkFlows(object):
...
@@ -121,7 +121,7 @@ class WorkFlows(object):
txt
+=
'
}
'
txt
+=
'
}
'
f
.
write
(
txt
)
f
.
write
(
txt
)
_dict_to_py
(
_obskind_read
(),
self
.
cluster
.
scripts_rundir
+
'
/
config/
obskind.py
'
)
_dict_to_py
(
_obskind_read
(),
self
.
cluster
.
scripts_rundir
+
'
/obskind.py
'
)
# probably not needed
# probably not needed
# shutil.copy('config/'+server_config, 'config/cluster.py') # whatever server, the config name is always the same!
# shutil.copy('config/'+server_config, 'config/cluster.py') # whatever server, the config name is always the same!
...
@@ -141,7 +141,7 @@ class WorkFlows(object):
...
@@ -141,7 +141,7 @@ class WorkFlows(object):
Returns:
Returns:
None
None
"""
"""
cmd
=
self
.
cluster
.
python
+
'
'
+
self
.
cluster
.
dartwrf_dir
+
'
/dartwrf
/prepare_wrfrundir.py
'
+
init_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
cmd
=
self
.
cluster
.
python
+
'
'
+
self
.
cluster
.
scripts_rundir
+
'
/prepare_wrfrundir.py
'
+
init_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
print
(
cmd
)
print
(
cmd
)
os
.
system
(
cmd
)
os
.
system
(
cmd
)
...
@@ -259,7 +259,7 @@ class WorkFlows(object):
...
@@ -259,7 +259,7 @@ class WorkFlows(object):
if
not
os
.
path
.
exists
(
prior_path_exp
):
if
not
os
.
path
.
exists
(
prior_path_exp
):
raise
IOError
(
'
prior_path_exp does not exist:
'
+
prior_path_exp
)
raise
IOError
(
'
prior_path_exp does not exist:
'
+
prior_path_exp
)
cmd
=
(
self
.
cluster
.
python
+
'
'
+
self
.
cluster
.
dartwrf_dir
+
'
/dartwrf
/assim_synth_obs.py
'
cmd
=
(
self
.
cluster
.
python
+
'
'
+
self
.
cluster
.
scripts_rundir
+
'
/assim_synth_obs.py
'
+
assim_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
assim_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
prior_init_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
prior_init_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
prior_valid_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
prior_valid_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
...
...
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