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
99fd4eea
Commit
99fd4eea
authored
3 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
small fix
parent
51871c03
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
dartwrf/cleanup_exp.py
+5
-6
5 additions, 6 deletions
dartwrf/cleanup_exp.py
dartwrf/obsseq.py
+1
-1
1 addition, 1 deletion
dartwrf/obsseq.py
with
6 additions
and
7 deletions
dartwrf/cleanup_exp.py
+
5
−
6
View file @
99fd4eea
import
os
,
glob
import
os
,
glob
,
shutil
from
config.cfg
import
exp
,
cluster
from
config.cfg
import
exp
,
cluster
from
utils
import
try_remove
from
utils
import
try_remove
...
@@ -10,7 +10,7 @@ from utils import try_remove
...
@@ -10,7 +10,7 @@ from utils import try_remove
"""
"""
keep_last_init_wrfrst
=
True
keep_last_init_wrfrst
=
True
print
(
'
removing files for exp
'
,
exp
)
print
(
'
removing files for exp
'
,
exp
.
expname
)
# 1) wrfrst
# 1) wrfrst
inits
=
reversed
(
sorted
(
glob
.
glob
(
cluster
.
archivedir
+
'
/20??-??-??_??:??
'
)))
inits
=
reversed
(
sorted
(
glob
.
glob
(
cluster
.
archivedir
+
'
/20??-??-??_??:??
'
)))
...
@@ -27,9 +27,8 @@ for k, init in enumerate(inits):
...
@@ -27,9 +27,8 @@ for k, init in enumerate(inits):
try_remove
(
f
)
try_remove
(
f
)
# 2) run_DART/exp
# 2) run_DART/exp
os
.
removedirs
(
cluster
.
dartrundir
)
shutil
.
rmtree
(
cluster
.
dartrundir
,
ignore_errors
=
True
)
# 3) run_WRF/exp
# 3) run_WRF/exp
for
iens
in
range
(
1
,
exp
.
n_ens
+
1
):
shutil
.
rmtree
(
cluster
.
wrf_rundir_base
+
'
/
'
+
exp
.
expname
,
ignore_errors
=
True
)
os
.
removedirs
(
cluster
.
wrf_rundir
(
iens
))
print
(
cluster
.
wrf_rundir_base
+
'
/
'
+
exp
.
expname
,
'
removed.
'
)
print
(
cluster
.
wrf_rundir
(
iens
),
'
removed.
'
)
This diff is collapsed.
Click to expand it.
dartwrf/obsseq.py
+
1
−
1
View file @
99fd4eea
...
@@ -3,7 +3,7 @@ import numpy as np
...
@@ -3,7 +3,7 @@ import numpy as np
import
pandas
as
pd
import
pandas
as
pd
from
config.cfg
import
exp
,
cluster
from
config.cfg
import
exp
,
cluster
from
utils
import
symlink
,
copy
,
sed_inplace
,
append_file
,
mkdir
,
try_remove
from
dartwrf.
utils
import
symlink
,
copy
,
sed_inplace
,
append_file
,
mkdir
,
try_remove
def
plot_box
(
m
,
lat
,
lon
,
label
=
""
,
**
kwargs
):
def
plot_box
(
m
,
lat
,
lon
,
label
=
""
,
**
kwargs
):
...
...
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