Displaying 1 result from an estimated 1 matches for "ccd20".
Did you mean:
ccc20
2011 Mar 21
1
Lat Lon NetCDF subset
...Extract a lat-long defined box
2) Extract a selection of pixels whose lat-long coordinates are defined in a
separate data.frame (basically I want the value of CCD at specified
rain-gauge locations)
So far my code is as follows
#----------------------------------------------------#
library(ncdf)
CCD20 = open.ncdf("ccd1983_01-dk1_20.nc")
lat = get.var.ncdf(CCD20, "lat") # coordinate variable
lon = get.var.ncdf(CCD20, "lon") # coordinate variable
z = get.var.ncdf(CCD20, "data")
#----------------------------------------------------#
I'm then manually...