|
2 | 2 | [[root]] |
3 | 3 | init-script = """ |
4 | 4 | # stock fre-cli |
5 | | - module load fre/{{ FRE_VERSION }} |
| 5 | + #module load fre/{{ FRE_VERSION }} |
6 | 6 |
|
7 | 7 | # custom user fre-cli |
8 | | - #module load conda |
| 8 | + module load conda |
9 | 9 | #conda activate user-fre-cli |
| 10 | + conda activate fre-cli |
10 | 11 | which fre |
11 | 12 |
|
12 | 13 | module load gcp/2.3 |
|
19 | 20 | platform = ppan |
20 | 21 | [[[directives]]] |
21 | 22 | --comment=xtmp,fre/{{ FRE_VERSION }} |
| 23 | + --partition=analysis |
22 | 24 | [[[environment]]] |
23 | 25 | COPY_TOOL=gcp |
24 | 26 |
|
|
32 | 34 | pre-script = """ |
33 | 35 | env |
34 | 36 | set -x |
| 37 | + module load hsm/1.3.0 |
35 | 38 | module load gcp |
| 39 | + # needed only for list_ncvars. |
| 40 | + module load fre-nctools/2024.05.01 |
36 | 41 | mkdir -p $work $tempCache $refineDiagDir |
37 | 42 | hsmget -v -t -a $histDir -p {{ PTMP_DIR }}/$histDir -w $work $hsmdate/\* |
38 | 43 | cd $work/$hsmdate |
39 | 44 | ls |
40 | 45 | """ |
41 | 46 | {% endif %} |
42 | 47 |
|
43 | | -{% if DO_REFINEDIAG %} |
44 | | - [[REFINE-DIAG]] |
45 | | - post-script = """ |
46 | | - cd $refineDiagDir |
47 | | - if ls *nc; then |
48 | | - refinedCount=$(ls -1 *nc | wc -l) |
49 | | - else |
50 | | - refinedCount=0 |
51 | | - fi |
52 | | - if [[ $refinedCount > 0 ]]; then |
53 | | - for file in $(ls -1 *nc); do |
54 | | - list_ncvars.csh -st01234 $file |& tee $CYLC_WORKFLOW_SHARE_DIR/refineDiag.log |
55 | | - done |
56 | | - else |
57 | | - echo ERROR: RefineDiag script did not create any NetCDF files as it was expected to do |
58 | | - exit 1 |
59 | | - fi |
60 | | - if [[ -f {{ HISTORY_DIR_REFINED }}/$oname.nc.tar ]]; then |
61 | | - echo "the contents of {{ PTMP_DIR }}/{{ HISTORY_DIR_REFINED }} is..." |
62 | | - ls {{ PTMP_DIR }}/{{ HISTORY_DIR_REFINED }} |
63 | | - echo "the contents of {{ PTMP_DIR }}/{{ HISTORY_DIR_REFINED }}/$oname.nc is..." |
64 | | - ls {{ PTMP_DIR }}/{{ HISTORY_DIR_REFINED }}/$oname.nc |
65 | | - hsmget -v -t -a {{ HISTORY_DIR_REFINED }} -p {{ PTMP_DIR }}/{{ HISTORY_DIR_REFINED }} \ |
66 | | - -w $TMPDIR/modify_refineDiag $hsmdate/\* |
67 | | - mv -f * $TMPDIR/modify_refineDiag |
68 | | - mv -f $TMPDIR/modify_refineDiag/* . |
69 | | - rm -rf $TMPDIR/modify_refineDiag |
70 | | - fi |
71 | | - hsmput -v -t -s tar -a {{ HISTORY_DIR_REFINED }} -p {{ PTMP_DIR }}/{{ HISTORY_DIR_REFINED }} \ |
72 | | - -w $TMPDIR/history_refineDiag $hsmdate |
73 | | - """ |
74 | | -{% endif %} |
75 | | - |
76 | 48 | [[MAKE-TIMEAVGS]] |
77 | 49 | pre-script = module load cdo |
78 | 50 |
|
|
0 commit comments