Re: [R] how to read netcdf file in R

2012-04-13 Thread David William Pierce
On Fri, Apr 13, 2012 at 12:09 AM, Yogesh Tiwari wrote: > Dear David, > > Thanks, > > I could read and open .nc file in R, but now how to plot a simple filled > color. [...] Hi Yogesh, glad to hear that the ncdf package is doing its job correctly. I'm sure you understand that I don't have the res

Re: [R] how to read netcdf file in R

2012-04-13 Thread Yogesh Tiwari
Dear David, Thanks, I could read and open .nc file in R, but now how to plot a simple filled color. Data and variables of .nc after reading in R are as below. Data have time steps of 99 (monthly mean data for 8 years). If I want to fill / plot co2 variable at time=1 then how to do it. Also, how

Re: [R] how to read netcdf file in R

2012-04-02 Thread David William Pierce
On Mon, Apr 2, 2012 at 1:54 AM, Yogesh Tiwari wrote: > How  to read netcdf files in R ? > Which packeges do we need to install for this, > and what commands are used for reading netcdf files. Typical code would look something like this: library('ncdf'') filename <- 'data.nc' varname <- 'Temper

Re: [R] how to read netcdf file in R

2012-04-02 Thread Adrienne Wootten
Yogesh, The package I most commonly use for reading and working with netcdfs is called ncdf. It has a collection of commands for working with netcdf files, but the open command is open.ncdf in this package Adrienne -- Adrienne Wootten Graduate Research Assistant State Climate Office of North C

[R] how to read netcdf file in R

2012-04-02 Thread Yogesh Tiwari
Dear R Users, I am using R 2.14.1 on windows How to read netcdf files in R ? Which packeges do we need to install for this, and what commands are used for reading netcdf files. Thanks, Best Regards, Yogesh Tiwari -- Yogesh K. Tiwari (Dr.rer.nat), Scientist, Centre for Climate Change Resear