Re: [R] Batch open netcdf files and get variables

2013-04-13 Thread Marc Girondot
I make an example for the use of this package here: http://max2.ese.u-psud.fr/epc/conservation/Girondot/Publications/Blog_r/Entrees/2013/2/26_Using_package_RNetCDF_with_SST.html Sincerely Marc Girondot Le 12/04/13 17:39, Enhao Du a écrit : Hi, I'm new to R. I have some daily soil moisture data

[R] Batch open netcdf files and get variables

2013-04-12 Thread Enhao Du
Hi, I'm new to R. I have some daily soil moisture data for the year 1979 in netcdf format such as these sm19790101.1.nc sm19790102.1.nc . . . sm19791231.1.nc I need to average a variable called sm to monthly resolution. I've done these days = formatC(1:31, width=2, flag=0) ncfiles =