forked from NOAA-EMC/global-workflow
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38b7261
commit 50cb1e6
Showing
1 changed file
with
138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE workflow | ||
[ | ||
<!-- Experiment parameters such as name, cycle, resolution --> | ||
<!ENTITY PSLOT "v17p8_ugwpv1"> | ||
<!ENTITY PSLOT "v17p8_ugwpv1_c3"> | ||
<!ENTITY PSLOT "v17p8_ugwpv1_mynn"> | ||
<!ENTITY CDUMP "gfs"> | ||
<!ENTITY CASE "C768"> | ||
<!ENTITY COMPONENT "atmos"> | ||
<!ENTITY RES "0p25"> | ||
<!ENTITY FCST_LENGTH "48"> | ||
<!ENTITY FCST_LENGTH "120"> | ||
|
||
<!-- Experiment parameters such as starting, ending dates --> | ||
<!ENTITY SDATE "202401140000"> | ||
<!ENTITY EDATE "202401140000"> | ||
<!ENTITY INTERVAL "24:00:00"> | ||
<!ENTITY PTITLE "GFSv17p8_UGWPV1"> | ||
<!ENTITY PTITLE "GFSv17p8_UGWPV1_C3"> | ||
<!ENTITY PTITLE "GFSv17p8_UGWPV1_MYNN"> | ||
|
||
<!-- Run Envrionment --> | ||
<!ENTITY RUN_ENVIR "emc"> | ||
|
||
<!-- Directories for driving the workflow --> | ||
<!ENTITY HOMEgfs "/scratch1/BMC/gsd-fv3-dev/KaYee.Wong/global-workflow/"> | ||
<!ENTITY JOBS_DIR "&HOMEgfs;/jobs/rocoto"> | ||
|
||
<!-- Experiment related directories --> | ||
<!ENTITY EXPDIR "&HOMEgfs;/FV3GFSwfm/&PSLOT;"> | ||
<!ENTITY ROTDIR "&HOMEgfs;/FV3GFSrun/&PSLOT;"> | ||
<!ENTITY PYGRAFDIR "/scratch1/BMC/gsd-fv3/rtruns/pygraf"> | ||
|
||
<!-- Machine related entities --> | ||
<!ENTITY ACCOUNT "gsd-fv3"> | ||
<!ENTITY QUEUE "batch"> | ||
<!ENTITY PARTITION_BATCH "hera"> | ||
<!ENTITY SCHEDULER "slurm"> | ||
|
||
<!-- ROCOTO parameters that control workflow --> | ||
<!ENTITY CYCLETHROTTLE "4"> | ||
<!ENTITY TASKTHROTTLE "25"> | ||
<!ENTITY MAXTRIES "2"> | ||
|
||
<!-- BEGIN: Resource requirements for the workflow --> | ||
|
||
<!ENTITY QUEUE_PYTHON "&QUEUE;"> | ||
<!ENTITY PARTITION_PYTHON "&PARTITION_BATCH;"> | ||
<!ENTITY WALLTIME_PYTHON "01:30:00"> | ||
<!ENTITY RESOURCES_PYTHON "1:ppn=40:tpp=1"> | ||
<!ENTITY MEMORY_PYTHON "40G"> | ||
<!ENTITY NATIVE_PYTHON "--export=NONE"> | ||
|
||
<!-- END: Resource requirements for the workflow --> | ||
|
||
]> | ||
|
||
<workflow realtime="F" scheduler="&SCHEDULER;" cyclethrottle="&CYCLETHROTTLE;" taskthrottle="&TASKTHROTTLE;" > | ||
|
||
<log verbosity="10"><cyclestr>&EXPDIR;/logs/@Y@m@[email protected]</cyclestr></log> | ||
|
||
<!-- Define the cycles --> | ||
<cycledef group="gfs">&SDATE; &EDATE; &INTERVAL;</cycledef> | ||
|
||
<metatask name="remapgrib" throttle="58"> | ||
|
||
<var name="fcst"> 0 6 12 18 24 30 36 42 48 </var> | ||
<var name="T"> 000 006 012 018 024 030 036 042 048 </var> | ||
|
||
<task name="remapgrib_#T#" cycledefs="gfs" maxtries="4"> | ||
<command>&JOBS_DIR;/remapgrib.ksh</command> | ||
<account>&ACCOUNT;</account> | ||
<cores>1</cores> | ||
<walltime>00:35:00</walltime> | ||
<jobname><cyclestr>remapgrib_#T#_&PSLOT;</cyclestr></jobname> | ||
<join><cyclestr>&ROTDIR;/logs/@Y@m@d@H/remapgrib_#T#.log</cyclestr></join> | ||
<envar><name>ROTDIR</name><value>&ROTDIR;</value></envar> | ||
<envar><name>CDUMP</name><value>&CDUMP;</value></envar> | ||
<envar><name>COMPONENT</name><value>&COMPONENT;</value></envar> | ||
<envar><name>yyyymmdd</name><value><cyclestr>@Y@m@d</cyclestr></value></envar> | ||
<envar><name>hh</name><value><cyclestr>@H</cyclestr></value></envar> | ||
<envar><name>fcst</name><value>#T#</value></envar> | ||
<envar><name>GRID_NAMES</name><value>201D130D242</value></envar> | ||
<dependency> | ||
<datadep minsize="1b" age="120"> <cyclestr>&ROTDIR;/&CDUMP;.@Y@m@d/@H/products/&COMPONENT;/grib2/0p25/&CDUMP;[email protected].&RES;.f#T#</cyclestr></datadep> | ||
</dependency> | ||
</task> | ||
|
||
</metatask> | ||
|
||
<metatask> | ||
|
||
<!-- | ||
-f 0 &FCST_LENGTH; 6 \ | ||
--> | ||
<var name="GRID_ID">full 242 130 201</var> | ||
<var name="TILESET">full,Africa,Beijing,Cambodia,EPacific,Europe,Taiwan,WAtlantic,WPacific AK,AKZoom,AKZoom2 CONUS,NC,NE,NW,SC,SE,SW NHemi</var> | ||
<var name="IMGFILE">global.yml globalAK.yml globalCONUS.yml globalNHemi.yml</var> | ||
|
||
<task name="gfspygraf_#GRID_ID#" cycledefs="gfs" maxtries="&MAXTRIES;"> | ||
|
||
<command> | ||
<cyclestr> | ||
source &PYGRAFDIR;/pre.sh; | ||
cd &PYGRAFDIR;; | ||
python &PYGRAFDIR;/create_graphics.py \ | ||
maps \ | ||
-d &ROTDIR;/&CDUMP;.@Y@m@d/@H/products/&COMPONENT;/grib2/0p25/post/#GRID_ID#\ | ||
-f 0 &FCST_LENGTH; 6 \ | ||
--file_type prs \ | ||
--file_tmpl "&CDUMP;[email protected]{FCST_TIME:03d}"\ | ||
--images &PYGRAFDIR;/image_lists/#IMGFILE# hourly\ | ||
-m "&PTITLE;" \ | ||
-n ${SLURM_CPUS_ON_NODE:-12} \ | ||
-o &ROTDIR;/&CDUMP;.@Y@m@d/@H/products/&COMPONENT;/pyprd \ | ||
-s @Y@m@d@H \ | ||
--tiles "#TILESET#" \ | ||
-z &ROTDIR;/&CDUMP;.@Y@m@d/@H/products/&COMPONENT;/img | ||
</cyclestr> | ||
</command> | ||
<account>&ACCOUNT;</account> | ||
<queue>&QUEUE;</queue> | ||
<nodes>&RESOURCES_PYTHON;</nodes> | ||
<walltime>&WALLTIME_PYTHON;</walltime> | ||
<native>--exclusive</native> | ||
<jobname><cyclestr>FV3GFS_python_maps_#GRID_ID#_@H_ugwpv1_mynn</cyclestr></jobname> | ||
<join><cyclestr>&ROTDIR;/logs/@Y@m@d@H/python_@Y@m@d@H00_maps_#GRID_ID#_0-6-&FCST_LENGTH;.log</cyclestr></join> | ||
|
||
<dependency> | ||
<metataskdep metatask="remapgrib"/> | ||
</dependency> | ||
|
||
</task> | ||
|
||
</metatask> | ||
|
||
</workflow> |