Re: [R] Clip smaller domain from large domain netCDF file

2014-08-27 Thread Roy Mendelssohn
Hi Aseem: I will try to keep this as short as possible, because a lot of the issue here is more with understanding netcdf file structure than with R, because once you understand the former using ncdf4 is pretty straightforward.. So if you want a more detailed response we should probably take i

Re: [R] Clip smaller domain from large domain netCDF file

2014-08-27 Thread Aseem Sharma
Hi, Yes this is the canadian domain data. I want to extract only for parts of western Canada. Further, this data has three variable namely pr, tmax and tmin. I am trying to extract three different .nc files of each parameters for a smaller domain. below is the results of str(myfile). > str(ncold) L

Re: [R] Clip smaller domain from large domain netCDF file

2014-08-26 Thread Roy Mendelssohn
Using the ncdf4 library requires some knowledge of netcdf files and how they work. However, if you can provide the following information I may be able to provide some pointers. I am assuming your file is named "myFile.nc". Where you see that replace with the actual name. library(ncdf4) myFi

[R] Clip smaller domain from large domain netCDF file

2014-08-26 Thread Aseem Sharma
Hi, I have this huge ( ~30GB) .nc file (NC_FORMAT_NETCDF4_CLASSIC)) for the whole country 141.00 to 52.00 W, 41.00 to 84.00 N". I am trying to clip this big dataset for a small region specific domain (120.00 to 130.00 W, 50.00 to 60.00 N). I am trying to do using netCDF4 r package but could not fig