Is there a way to average values in a NetCDF file over a given list of lat/lon coordinates using nco before using R to convert it into a Raster Brick? This list of lat/lon coordinates represents a non-rectangular region.
Right now, I have an .nc file with monthly temperature data for a single year for the entire ocean. I have a list of lat/lon values that describe my study region. I would like to extract a single average value for temperature for each month across all coordinates in my lat/lon list. Thus far, I've been trying to perform this operation after the .nc file has been converted to a Raster Brick in R, but it requires too much memory to perform the operation.
Therefore, I'm wondering if there is a way I can do this in bash using nco instead.
Thanks!