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

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 worked for

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

2010-10-27 Thread Charles Novaes de Santana
Hi everyone, I am a newbie in R and in this discussion list. I am trying to use R package ncdf to read values of temperature from a NCDF file. I did it before to another file using the function get.var.ncdf, but now there is an error that I can not solve, and I would really appreciate if you

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

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 jholt...@gmail.com 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

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