Re: [R] "non-numeric argument to binary operator" error while reading ncdf file

2010-11-03 Thread David Pierce
Charles Novaes de Santana wrote: > Thank you everybody for the help! The solution of my problem is here: > > http://climateaudit.org/2009/10/10/unthreaded-23/ > > "The mv variable is the designated NA for the variable and it appears that > somebody screwed that up in the file. This workaround worke

Re: [R] "non-numeric argument to binary operator" error while reading ncdf file

2010-11-03 Thread Charles Novaes de Santana
Thank you everybody for the help! The solution of my problem is here: http://climateaudit.org/2009/10/10/unthreaded-23/ "The mv variable is the designated NA for the variable and it appears that somebody screwed that up in the file. This workaround worked for me: Print out the function get.var.n

Re: [R] "non-numeric argument to binary operator" error while reading ncdf file

2010-10-27 Thread Charles Novaes de Santana
Hi, Well, I did it, but all my script was on the first message. I don't have any other variables. I am just reading a NCDF file and trying to read the variable "tasmax", that has values of temperatures. The only "new" information I have is the header of the NCDF file (Spain02D_tasmax.nc), that I

Re: [R] "non-numeric argument to binary operator" error while reading ncdf file

2010-10-27 Thread Charles Novaes de Santana
Thank you for your answer, Jim! I will try it and post what I find. cheers, Charles On Wed, Oct 27, 2010 at 3:46 PM, jim holtman wrote: > put: > > options(error=utils::recover) > > in your script so that when an error occurs you are dropped into the > 'browser' so that you can examine the vari

Re: [R] "non-numeric argument to binary operator" error while reading ncdf file

2010-10-27 Thread jim holtman
put: options(error=utils::recover) in your script so that when an error occurs you are dropped into the 'browser' so that you can examine the variables at that point in time. There are several references on how to use the debugging tools in R that will help you resolve your problem. We can not