[Met_help] [rt.rap.ucar.edu #57004] History for Questions about trmm2nc.R

John Halley Gotway via RT met_help at ucar.edu
Tue Jun 26 10:50:48 MDT 2012


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Dir sir,

I had questions about trmm2nc.R, i didn't know how to set the
"library(ncdf)" in the code.
I got the error message,

Error in library(ncdf) : there is no package called ?ncdf ?
Execution halted

Could you please tell me how to set the library?
Thank you very much!!

Kate


----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: Questions about trmm2nc.R
From: 吳小榆
Time: Thu Jun 14 23:36:58 2012

Dir sir,

I had questions about trmm2nc.R, i didn't know how to set the
"library(ncdf)" in the code.
I got the error message,

Error in library(ncdf) : there is no package called ?ncdf ?
Execution halted

Could you please tell me how to set the library?
Thank you very much!!

Kate

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #57004] Questions about trmm2nc.R
From: John Halley Gotway
Time: Fri Jun 15 06:53:11 2012

Kate,

The "trmm2nc.R" script is written using the R statistical language
(http://www.r-project.org/).  Within R there is a lot of basic
functionality, but in addition, there are user-contributed packages
available that extend the functionality.  The "ncdf" library is a
package that's available in R for reading/writing NetCDF files.  The
"trmm2nc.R" script uses functions defined in that library.  So in
order to run that script, you'll need to install that library.

The easiest way to do this is by executing the
"install.packages("ncdf")" command within R:
 > R
 > install.packages("ncdf")

Please give that a try.  If it works, then great.  But there are some
things that could go wrong:
- you may not have write permission to install the package to the
default location
- you may not have the NetCDF library available in your path

If you get stuck, just let me know.  Hopefully, I can point you in the
right direction.

Thanks,
John Halley Gotway
met_help at ucar.edu

On 06/14/2012 11:36 PM, 吳小榆 via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=57004 >
>
> Dir sir,
>
> I had questions about trmm2nc.R, i didn't know how to set the
> "library(ncdf)" in the code.
> I got the error message,
>
> Error in library(ncdf) : there is no package called ?ncdf ?
> Execution halted
>
> Could you please tell me how to set the library?
> Thank you very much!!
>
> Kate
>


------------------------------------------------


More information about the Met_help mailing list