Skip to content

Commit

Permalink
Shorten arguments for ncclimo
Browse files Browse the repository at this point in the history
  • Loading branch information
forsyth2 committed Jul 15, 2021
1 parent 58f0f09 commit fcf28fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions zppy/templates/climo.bash
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ then
fi
{%- endraw %}
ls {{ case }}.{{ input_files }}.????-*.nc > input.txt
# Now, call ncclimo
ncclimo \
cat input.txt | ncclimo \
--case={{ case }}.{{ input_files }} \
{%- if exclude %}
-n '-x' \
Expand All @@ -103,8 +104,7 @@ ncclimo \
--output=trash \
--regrid=output \
{%- endif %}
--climatology_mode=hfc \
{{ case }}.{{ input_files }}.????-*.nc
--climatology_mode=hfc
{% else %}
# --- Unsupported climatology mode ---
Expand Down
4 changes: 2 additions & 2 deletions zppy/templates/ts.bash
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ fi
{%- endraw %}
{%- endif %}
ls {{ case }}.{{ input_files }}.????-*.nc > input.txt
# Generate time series files
ncclimo \
cat input.txt | ncclimo \
-c {{ case }} \
-v {{ vars }} \
--yr_srt={{ yr_start }} \
Expand All @@ -79,7 +80,6 @@ ncclimo \
--dpf={{ dpf }} \
--tpd={{ tpd }} \
{%- endif %}
{{ case }}.{{ input_files }}.????-*.nc
if [ $? != 0 ]; then
cd {{ scriptDir }}
Expand Down

0 comments on commit fcf28fd

Please sign in to comment.