Skip to content

Commit 4db3e24

Browse files
specify year range (#558)
1 parent c3f463d commit 4db3e24

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

zppy/templates/ts.bash

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ cat > default_metadata.json << EOF
141141
EOF
142142
{
143143
export cmortables_dir={{ cmor_tables_prefix }}/cmip6-cmor-tables/Tables
144-
input_dir={{ output }}/post/{{ component }}/{{ grid }}/ts/{{ frequency }}/{{ '%dyr' % (ypf) }}
144+
#input_dir={{ output }}/post/{{ component }}/{{ grid }}/ts/{{ frequency }}/{{ '%dyr' % (ypf) }}
145+
input_dir=${dest}/{{ yr_start }}_{{ yr_end }}
146+
mkdir -p $input_dir
147+
148+
cp -s $dest/*_{{ yr_start }}??_{{ yr_end }}??.nc $input_dir
145149
dest_cmip={{ output }}/post/{{ component }}/{{ grid }}/cmip_ts/{{ frequency }}
146150
mkdir -p ${dest_cmip}
147151
{{ e3sm_to_cmip_environment_commands }}
@@ -161,7 +165,7 @@ EOF
161165
atm \
162166
{% endif -%}
163167
--input-path \
164-
${input_dir}\
168+
${input_dir} \
165169
--user-metadata \
166170
{{ scriptDir }}/${workdir}/default_metadata.json \
167171
--num-proc \

0 commit comments

Comments
 (0)