Sum all values over several dimensions of a netCDF variable

This post was originally published here

NCO:ncap2 and .total

ncap2 -s '$lat,$lon)'

Make sure to use single quotes.

If your then adding -A will save you from having to specify “overwrite” (see this).

ncap2 -A -s '$lat,$lon)'

Leave a Reply

Your email address will not be published. Required fields are marked *