Skip to content

Commit

Permalink
specify year range (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhuzhang authored Mar 2, 2024
1 parent c3f463d commit 4db3e24
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zppy/templates/ts.bash
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ cat > default_metadata.json << EOF
EOF
{
export cmortables_dir={{ cmor_tables_prefix }}/cmip6-cmor-tables/Tables
input_dir={{ output }}/post/{{ component }}/{{ grid }}/ts/{{ frequency }}/{{ '%dyr' % (ypf) }}
#input_dir={{ output }}/post/{{ component }}/{{ grid }}/ts/{{ frequency }}/{{ '%dyr' % (ypf) }}
input_dir=${dest}/{{ yr_start }}_{{ yr_end }}
mkdir -p $input_dir
cp -s $dest/*_{{ yr_start }}??_{{ yr_end }}??.nc $input_dir
dest_cmip={{ output }}/post/{{ component }}/{{ grid }}/cmip_ts/{{ frequency }}
mkdir -p ${dest_cmip}
{{ e3sm_to_cmip_environment_commands }}
Expand All @@ -161,7 +165,7 @@ EOF
atm \
{% endif -%}
--input-path \
${input_dir}\
${input_dir} \
--user-metadata \
{{ scriptDir }}/${workdir}/default_metadata.json \
--num-proc \
Expand Down

0 comments on commit 4db3e24

Please sign in to comment.