3. Constants
Then, all the static files used by the vortex tasks have to be in cache.
Use the subcommand put
of the sloop constants command.
sloop constants put
will collect the namelists by topic depending on the
model and build a tarfile by topic (pack). Two kinds of packages are defined:
the geographical dependant ones and the non-dependant ones.
The tarfile names are given in sloop/templates/conf/{vapp}_uconf.ini.
Example
For hycom3d, the available packages are:
In [1]: from sloop.models.hycom3d import( ...: HYCOM3D_NOT_GEO_CONSTANT_PATTERNS, ...: HYCOM3D_GEO_CONSTANT_PATTERNS ...: ) ...: In [2]: for patt in [HYCOM3D_NOT_GEO_CONSTANT_PATTERNS, ...: HYCOM3D_GEO_CONSTANT_PATTERNS]: ...: for p, fs in patt.items(): ...: print(f"pack: {p}") ...: print("files:") ...: for f in fs: ...: print(f" {f}") ...: pack: naming files: PARAMETERS{rank}./traductions_* pack: nest files: FORCING{rank}./nest/debitmeso.list FORCING{rank}./nest/rivers.cfg FORCING{rank}./nest/rivers.list FORCING{rank}./nest/rmu.[ab] pack: tide files: FORCING{rank}./tide/tide.list FORCING{rank}./tide/forcing.*tide.[ab] pack: regional files: FORCING{rank}./regional.grid.a FORCING{rank}./regional.grid.b FORCING{rank}./regional.depth.a FORCING{rank}./regional.depth.b FORCING{rank}./regional.mask.nc FORCING{rank}./tabindicesT FORCING{rank}./iso.sigma.a FORCING{rank}./iso.sigma.b pack: run files: PARAMETERS{rank}./blkdat.input PARAMETERS{rank}./blkdat_cmo.input PARAMETERS{rank}./defstrech*.input PARAMETERS{rank}./ports.input PARAMETERS{rank}./run.input.tpl PARAMETERS{rank}./spnudging_parameters.json PARAMETERS{rank}./blkdat_cmo_A.input PARAMETERS{rank}./blkdat_cmo_P.input PARAMETERS{rank}./blkdat_cmo_spnudge_free.input PARAMETERS{rank}./blkdat_cmo_spnudge_relax.input PARAMETERS{rank}./blkdat_cmo_A.input pack: postprod files: PARAMETERS{rank}./postprod.cfg PARAMETERS{rank}./postprod_*.cfg pack: savefield files: PARAMETERS{rank}./savefield.input PARAMETERS{rank}./savefield_P.input PARAMETERS{rank}./savefield_A.input PARAMETERS{rank}./savefield_Assim_SN.input PARAMETERS{rank}./savefield_C.input pack: split files: SPLIT{rank}./patch.input pack: promises files: PARAMETERS{rank}./promises.cfg
Warning
sloop constants
has to be executed in the directory of the experiment
created by sloop init
.