UsageΒΆ
An example configuration file is provided under examples/scope_config.yaml
:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | template_replacements:
EXP_ID: "PI_1x10"
DATE_PATTERN: "[0-9]{6}"
scope:
couple_dir: "/work/ollie/pgierz/scope_tests/couple/"
number openMP processes: 8
echam:
type: atmosphere
griddes: T63
outdata_dir: "/work/ollie/pgierz/scope_tests/outdata/echam/"
code table: "echam6"
pre_preprocess:
program: "echo \"hello from pre_preprocess. Do you know: $(( 7 * 6 )) is the answer!\""
send:
ice:
temp2:
files:
pattern: "{{ EXP_ID }}_echam6_echam_{{ DATE_PATTERN }}.grb"
take:
newest: 12
code table: "echam6"
aprl:
files:
dir: "/work/ollie/pgierz/scope_tests/outdata/echam/"
pattern: "{{ EXP_ID }}_echam6_echam_{{ DATE_PATTERN }}.grb"
take:
newest: 12
code table: "/work/ollie/pgierz/scope_tests/outdata/echam/PI_1x10_185001.01_echam.codes"
aprc:
files:
dir: "/work/ollie/pgierz/scope_tests/outdata/echam/"
pattern: "{{ EXP_ID }}_echam6_echam_{{ DATE_PATTERN }}.grb"
take:
newest: 12
pism:
type: ice
griddes: ice.griddes
recieve:
atmosphere:
temp2:
interp: bil
transformation:
- expr: "air_temp=temp2-273.15"
ocean:
send:
atmosphere:
ocean:
|
To use scope in a project:
import scope