I have a netCDF file that I wish to extract a subset from defined by latitude/longitude boundaries (i.e. a lat/long defined box), using the ‘ncdf’ package in R.
A summa
You can also use CDO to extract the area from the bash command line first and then read the file in R:
cdo sellonlatbox,-5,12,34.5,44.5 in.nc out.nc
I note in the above discussion that there was a problem concerning the order of the latitudes. You can also use the CDO command "invertlat" to sort that out for you.