Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ush/interp_atmos_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ export err=$?; err_chk
# trim and mask for all grids
for grid in "${grids[@]}"; do
trim_rh "${output_file_prefix}_${grid}"; export err=$?; err_chk
mod_icec "${output_file_prefix}_${grid}"; export err=$?; err_chk
# shellcheck disable=SC2312
var_count=$(${WGRIB2} "${output_file_prefix}_${grid}" -match "LAND|ICEC" |wc -l)
if [[ "${var_count}" -eq 2 ]]; then
mod_icec "${output_file_prefix}_${grid}"; export err=$?; err_chk
fi
done

exit 0