Re: [R] Extracting matrix from netCDF file using ncdf4 package

2016-07-04 Thread Hemant Chowdhary via R-help
things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Sat, Jul 2, 2016 at 3:43 PM, Hemant Chowdhary via R-help wrote: >  I am working with a 3-dimensional netCDF file having dimensions of X=100, >Y=200, T=365. > My objective is to extract t

Re: [R] Extracting matrix from netCDF file using ncdf4 package

2016-07-03 Thread Hemant Chowdhary via R-help
  ncvar_get(nc=myNC, varid=“myVar”) and then use R’s subsetting abilities. You can do fancier subsetting of arrays in memory than you can to arrays on disk. HTH, -Roy > On Jul 2, 2016, at 3:43 PM, Hemant Chowdhary via R-help > wrote: > > I am working with a 3-dimensional netCDF fi

[R] Extracting matrix from netCDF file using ncdf4 package

2016-07-02 Thread Hemant Chowdhary via R-help
I am working with a 3-dimensional netCDF file having dimensions of X=100, Y=200, T=365. My objective is to extract time vectors of a few specific grids that may not be contiguous on X and/or Y. For example, I want to extract a 5x365 matrix where 5 rows are each vectors of length 365 of 5 spe