[R-sig-Geo] Runtime error when opening netCDF

2012-12-19 Thread Panday, Prajjwal
Dear all, I have a similar error reported by Robert Buitenwerf here: http://grokbase.com/t/r/r-sig-geo/11a3b5ms2c/netcdf-to-raster-error I am trying to read/open a netCDF file using the ncdf package, but it keeps giving me the Microsoft Visual C++ Runtime Library error: This application has

[R-sig-Geo] Extract area-average from netCDF using a vector

2012-05-21 Thread Panday, Prajjwal
Hello I am trying to extract area-averaged mean from a netcdf file using a vector. Please see my code below. I cannot figure out the commands to extract the time series of the 'precip variable' using the shapefile 'tamorbas'. Thanks, Prajjwal