Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF-delete_byApril
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Service Desk
Analyze
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-delete_byApril
Commits
06281585
Commit
06281585
authored
Feb 22, 2023
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
fc5c0bdc
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/cluster.py
+76
-0
76 additions, 0 deletions
config/cluster.py
docs/source/conf.py
+1
-3
1 addition, 3 deletions
docs/source/conf.py
with
77 additions
and
3 deletions
config/cluster.py
0 → 100755
+
76
−
0
View file @
06281585
import
os
,
sys
import
datetime
as
dt
from
dartwrf
import
utils
from
config.cfg
import
exp
"""
Configuration name docs
When coding, use attributes of a dictionary like this:
$ from cfg import exp, cluster
$ path = cluster.archivedir
attribute name | description
------------------------------------------------------
name any string (currently unused)
python path of python version to use
python_enstools path of python version to use for verification script (not provided)
ncks path to
'
ncks
'
program; type
'
which ncks
'
to find the path,
if it doesn
'
t exist, try to load the module first (
'
module load nco
'
)
ideal path to WRF
'
s ideal.exe
wrfexe path to WRF
'
s wrf.exe
wrf_rundir_base path for temporary files for WRF
dart_rundir_base path for temporary files for DART
archive_base path for long-time output storage
srcdir path to where WRF has been compiled, including the
'
run
'
folder of WRF, e.g. /home/WRF-4.3/run
dart_srcdir path to DART compile directory, e.g. /home/DART-9.11.9/models/wrf/work
rttov_srcdir path to RTTOV compile directory, e.g. /home/RTTOV13/rtcoef_rttov13/
scriptsdir path where DART-WRF scripts reside, e.g. /home/DART-WRF/scripts
namelist path to a namelist template; strings like <hist_interval>, will be overwritten in scripts/prepare_namelist.py
run_WRF path to script which runs WRF on a node of the cluster
obs_impact_filename path to obs_impact_filename (see DART guide; module assim_tools_mod and program obs_impact_tool)
geo_em path to NetCDF file of WRF domain (see WRF guide)
slurm_cfg python dictionary, containing options of SLURM
defined in SLURM docs (https://slurm.schedmd.com/sbatch.html)
this configuration can be overwritten later on, for example:
'
dict(cluster.slurm_cfg, **cfg_update)
'
where
'
cfg_update = {
"
nodes
"
:
"
2
"
}
'
"""
cluster
=
utils
.
ClusterConfig
(
exp
)
cluster
.
name
=
'
srvx1
'
cluster
.
max_nproc
=
6
cluster
.
use_slurm
=
False
# binaries
cluster
.
python
=
'
/users/staff/lkugler/miniconda3/bin/python
'
cluster
.
python_verif
=
'
/users/staff/lkugler/miniconda3/bin/python
'
cluster
.
ncks
=
'
/home/swd/spack/opt/spack/linux-rhel8-skylake_avx512/gcc-8.5.0/nco-5.0.1-ntu44aoxlvwtr2tsrobfr4lht7cpvccf/bin/ncks
'
cluster
.
ideal
=
''
#/jetfs/home/lkugler/bin/ideal-v4.3_v1.22.exe'
cluster
.
wrfexe
=
''
#/jetfs/home/lkugler/bin/wrf-v4.3_v1.22.exe'
cluster
.
container
=
''
# paths for data output
cluster
.
wrf_rundir_base
=
'
/users/staff/lkugler/AdvDA23/run_WRF/
'
# path for temporary files
cluster
.
dart_rundir_base
=
'
/users/staff/lkugler/AdvDA23/run_DART/
'
# path for temporary files
cluster
.
archive_base
=
'
/mnt/jetfs/scratch/lkugler/data/sim_archive/
'
# paths used as input
cluster
.
srcdir
=
'
/users/staff/lkugler/AdvDA23/DART/WRF-4.3/run
'
cluster
.
dart_srcdir
=
'
/users/staff/lkugler/AdvDA23/DART/models/wrf/work
'
cluster
.
rttov_srcdir
=
'
/users/staff/lkugler/AdvDA23/RTTOV13/rtcoef_rttov13/
'
cluster
.
scriptsdir
=
'
/users/staff/lkugler/AdvDA23/DART-WRF/dartwrf/
'
cluster
.
geo_em
=
'
/mnt/jetfs/scratch/lkugler/data/geo_em.d01.nc
'
# templates/run scripts
cluster
.
namelist
=
cluster
.
scriptsdir
+
'
/../templates/namelist.input
'
cluster
.
run_WRF
=
cluster
.
scriptsdir
+
'
/run_ens.jet.sh
'
cluster
.
slurm_cfg
=
{
"
account
"
:
"
lkugler
"
,
"
partition
"
:
"
compute
"
,
"
ntasks
"
:
"
1
"
,
"
ntasks-per-core
"
:
"
1
"
,
"
mem
"
:
"
50G
"
,
"
mail-type
"
:
"
FAIL
"
,
"
mail-user
"
:
"
lukas.kugler@univie.ac.at
"
}
This diff is collapsed.
Click to expand it.
docs/source/conf.py
+
1
−
3
View file @
06281585
...
...
@@ -12,8 +12,6 @@ release = '2023.2.21'
# -- General configuration
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'
../../
'
))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'
../
'
))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'
../../dartwrf/
'
))
extensions
=
[
'
sphinx.ext.duration
'
,
...
...
@@ -25,7 +23,7 @@ extensions = [
'
nbsphinx
'
]
autodoc_mock_imports
=
[
'
numpy
'
,
'
scipy
'
,
'
xarray
'
,
'
pandas
'
,
'
netCDF4
'
,
'
config.cluster
'
,
'
config.cfg
'
]
autodoc_mock_imports
=
[
'
numpy
'
,
'
scipy
'
,
'
xarray
'
,
'
pandas
'
,
'
netCDF4
'
]
napoleon_google_docstring
=
True
napoleon_numpy_docstring
=
False
...
...
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