For a netcdf file while includes precipitation values at many grid cells. The grid cells are represented by latitude and longitude. How to get the precipitation value at a specific grid, say, latitude and longitude? Thanks. For example, I used the code to open the file:
library('ncdf4')
precip.nc = nc_open('obs.pr.nc')
When I typed precip.nc, it shows three variables:
float longitude_bnds
float latitude_bnds
float pr
How to open the pr at a specific longitude_bnds and latitude_bnds? Thanks for your help.