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-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] [ncdf] programmatically copying a netCDF file

2012-01-12 Thread David William Pierce
Hi Tom, a few answers to your questions: On Mon, Jan 9, 2012 at 3:54 PM, Tom Roche wrote: > > :-) I guess I should have explained: I need to copy most of a source > file, modifying only part, and to write a target file. So my motivation > for this thread is, first, to be sure I can do the copyi

Re: [R] [ncdf] programmatically copying a netCDF file

2012-01-05 Thread David William Pierce
On Thu, Jan 5, 2012 at 3:29 PM, Tom Roche wrote: > > How to programmatically (i.e., without no or minimal handcoding) copy > a netCDF file? (Without calling > > > system("cp whatever wherever") > > [...] > > So I'm wondering, can anyone point me to, or provide, code that copies > a netCDF file

Re: [R] where to ask questions regarding package=ncdf?

2012-01-02 Thread David William Pierce
On Mon, Jan 2, 2012 at 6:08 PM, Tom Roche wrote: > > Should one ask questions relating to the R package 'ncdf' here? or > look for a more netCDF-oriented (but probably less R-oriented) list? > Hi Tom, you can ask here and I can give a shot at answering them (I'm the author of the ncdf and ncdf4

Re: [R] i can't read large NETCDF file like CRU

2011-12-12 Thread David William Pierce
On Mon, Dec 12, 2011 at 2:19 AM, tony333 wrote: > i use library(ncdf) to read this file as follow > library(ncdf) > sst.nc = open.ncdf(title) > lonall = get.var.ncdf(sst.nc,'lon') > latall = get.var.ncdf(sst.nc,'lat') > precip = get.var.ncdf(sst.nc,'pre') > close(sst.nc) > if i use this method my

Re: [R] ncdf - install error

2011-09-24 Thread David William Pierce
2011/9/24 Muhammad Rahiz : > Dear all, > > I'm having issues with the installation of the ncdf package. It returns a > non-zero exit status. Can anyone suggest what I should do next? FYI, I do > not have problems installing other packages. >[...] > /usr/bin/ld: /usr/local/lib/libnetcdf.a(attr.o): r

Re: [R] Problem in put.var.ncdf

2011-09-12 Thread David William Pierce
On Mon, Sep 12, 2011 at 1:32 PM, Claudia Stocker wrote: > Dear all, > > I have a problem in writing a variable to a NetCDF-File. > My code works pretty well until the step put.var.ncdf(): > > [...code omitted...] > R prints the following error: > #- > > Error in put.var.ncdf(sp

Re: [R] Editing the variables attributes section in the netCDF header of netCDF files created using the package ncdf.

2011-09-10 Thread David William Pierce
On Fri, Sep 9, 2011 at 3:18 PM, RMaidment wrote: > Another question which you might be able to answer is, is it possible to set > the order of the variables attributes in which they appear? [...] Hi Ross, The ncdf package makes the units and longname attributes automatically, so those will alwa

Re: [R] Editing the variables attributes section in the netCDF header of netCDF files created using the package ncdf.

2011-09-07 Thread David William Pierce
On Wed, Sep 7, 2011 at 2:25 PM, Ross Maidment < r.i.maidm...@pgr.reading.ac.uk> wrote: > Hi, > > I am using the package ncdf to create netCDF files and I want to mimic the > the header of an exiting netCDF file created outside of R. Below is what the > existing header looks like (part of it that i

Re: [R] HIRHAM netcdf files

2011-07-29 Thread David William Pierce
On Fri, Jul 29, 2011 at 7:44 AM, Ana wrote: > Can someone help me out with a "small" problem? > > I've started using netcdf files recently, and I want to extract the grid id > and also the coordinates from a HIRHAM netcdf file. > I know how to extract a slice of dataset both in space and in time

Re: [R] Select element out of several ncdf variables

2011-07-07 Thread David William Pierce
On Thu, Jul 7, 2011 at 9:10 AM, confused wrote: > Hi there > > I'm working with ncdf data. I have different dataset for 4 runs, 4 seasons > and 3 timeslices (48 datasets in total). The datasets have the following > dimensions: 96 longitudes, 48 latitudes and 30 time steps. To read all of > them i

Re: [R] read a netcdf file _Fill_value=-32768

2011-05-16 Thread David William Pierce
On Fri, May 6, 2011 at 10:11 AM, francoise orain wrote: > Hello > I am a new user of R . > and I ve problem with R and netcdf . > I succed installation , I could use all examples . > But when I take my netcf it is different . > > I want to do statistic on this kind of file . > > 1) > first calcula

Re: [R] Reading a large netCDF file using R

2011-05-11 Thread David William Pierce
On Tue, May 10, 2011 at 10:17 AM, Sulochan Dhungel < sulochandhun...@gmail.com> wrote: > Hi Dave, > > I asked for the climate group for one particular day's data so that I could > match it up with the data I got from the codes for the same day. It did not > match. So I knew it was not working. Als

Re: [R] Reading a large netCDF file using R

2011-05-10 Thread David William Pierce
On Mon, May 9, 2011 at 6:29 PM, sulochandhungel wrote: > I got a netCDF file from a climate group and wanted to aggregate the data. > The file summary looks like this > [...] > > I didnt think it worked... can u suggest me some other way ... I could not > use the start and count properly Could