Displaying 20 results from an estimated 1000 matches similar to: "A package to read and write NetCDF?"
2004 Jun 20
9
A way to list only variables or functions?
I am curious if there is any way to list only variables or functions in
current environment, rather than listing all objects? Thanks.
--
Daehyok Shin (Peter)
Geography Department
Univ. of North Carolina-Chapel Hill
2004 Jun 20
9
A way to list only variables or functions?
I am curious if there is any way to list only variables or functions in
current environment, rather than listing all objects? Thanks.
--
Daehyok Shin (Peter)
Geography Department
Univ. of North Carolina-Chapel Hill
2004 Jul 10
6
where does R search when source()?
Exactly where does R search for foo.R if I type source("foo.R")?
Only from current working directory (same as getwd()), from all directories
specified by e.g. $PATH? Thanks.
Daehyok Shin
2004 Jul 10
6
where does R search when source()?
Exactly where does R search for foo.R if I type source("foo.R")?
Only from current working directory (same as getwd()), from all directories
specified by e.g. $PATH? Thanks.
Daehyok Shin
2004 Jun 07
7
Vectors of years, months, and days to dates?
The interface for dates in R is a little confusing to me.
I want to create a vector of Date objects from vectors of years, months, and
days.
One solution I found is:
years <- c(1991, 1992)
months <- c(1, 10)
days <- c(1, 2)
dates <- as.Date(ISOdate(years, months, days))
But, in this solution the ISOdate function converts the vectors into
characters,
which can cause serious
2004 Apr 12
4
Only referenc copy when calling C routine?
What happens when I pass an array to a dynamically linked C routine?
Is only its reference copied when an array is passed and returned?
Or, is its whole content copied?
In R extension manual, I found the following description.
But, I can't know exactly which is true.
"There can be up to 65 further arguments giving R objects to be passed to
compiled code.
Normally these are copied before
2004 Apr 20
1
Can't find memory.size()
I try memory.size function to find out available memory size,
but surprisingly R complains it can't find the function.
?memory.size also failed.
Is it not in the base library? If so, why can't my R find it?
I am using the binary 1.9.0 version for Mandrake 9.1.
Thanks in advance.
Daehyok Shin
Terrestrial Hydrological Ecosystem Modellers
Geography Department
University of North
2004 Apr 07
3
More user-friendly error message needed.
When I tried the following commands, I got a strange message.
> x<-data.frame(y=c(1:10))
> plot(x$z)
Error in xy.coords(x, y, xlabel, ylabel, log) :
x and y lengths differ
"The data frame, x, does not have a field named z."
may be better user-friendly message for this kind of common error.
Daehyok Shin
2004 Apr 07
3
More user-friendly error message needed.
When I tried the following commands, I got a strange message.
> x<-data.frame(y=c(1:10))
> plot(x$z)
Error in xy.coords(x, y, xlabel, ylabel, log) :
x and y lengths differ
"The data frame, x, does not have a field named z."
may be better user-friendly message for this kind of common error.
Daehyok Shin
2000 Dec 22
2
REading the netCDF format into R
Hi!
I have been coding a C-program which will read data from the
netCDF format (a commonly used file format in the geophysical research
community: see Unidata's URL for explanation:
http://www.unidata.ucar.edu/packages/netcdf/), and have got to the point
where I don't know what the error message mean. The C-program is called
nc2r.c.
When compiling the code, I get a number of warnings,
1998 Feb 03
3
netcdf
Has anyone experimented with the Network Common Data Format (netcdf)
described at
http://www.unidata.ucar.edu/packages/netcdf
for archiving data?
Is this format widely used outside of atmospheric research?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
2012 Aug 28
4
[ncdf4] error converting GEIA data to netCDF
summary: I can successfully ncvar_put(...) data to a file, but when I
try to ncvar_get(...) the same data, I get
> Error in if (nc$var[[li]]$hasAddOffset) addOffset = nc$var[[li]]$addOffset else addOffset = 0 :
> argument is of length zero
How to fix or debug?
details:
R code @
https://github.com/TomRoche/GEIA_to_NetCDF
successfully (if crudely) uses R packages={ncdf4, maps, fields}
2011 Nov 29
1
Problems with Raster and clim.pact packages with large netcdf files (2.7G) in x64 bit R
I normally use the raster or clim.pact pckages to read netcdf (.nc) files.
This has always worked out for me until this weekend every time i try to
read a .nc file i get the following error
Program: C:\Program Files\RStudio\bin\x64\rsession.exe File: posixio.c,
Line 417 Expression: offset >= 0 This application has requested the Runtime
to terminate it in an unusual way.Please contact the
2004 Apr 05
1
Deep copy in R
I am handling spatial data of huge volumes,
so sensitive to the silent duplication of data in script programs.
In the following R program, exactly when is the vector data deeply copied?
Thanks in advance.
1 v <- 1:10000
2 z <- f(v)
--------- function f ----------
3 f <- function(x) {
4 y = x
5 y[10] = 1
6 xf = date.frame(x=x)
7 xf$x[10] = 1
8
2012 Apr 03
4
R+netcdf, resultados de WRF
Saludos estimados usuarios !
Estoy recién iniciándome en R y no he encontrado ejemplos de cómo graficar
los archivos netcdf que genera el modelo meterológico WRF.
¿Alguien tiene por ahí algunos scripts que me permitan ir interiorizándome
en el uso de paletas de colores, mapas y graficas de variables de este
modelo?
Anteriormente lo hacía vía GrADS, convirtiendo el NetCDf a GRIB, pero con
las
2004 Jul 22
2
Files and classes in a package?
While installing my small package, I met a tricky problem.
For clarity, let me explain it with the following simplified example.
In ~/pkg/R/aclass.R,
setClass("aclass", contains="bclass", representation(i="numeric"))
In ~/pkg/R/bclass.R,
setClass("bclass", representation(j="numeric"))
After building a "pkg" package, the file
2006 Jun 27
3
Possible to get a definition of a function from a package to use without invoking the package?
Hi,
I often use the mod() and instring() functions that are available in the
clim.pact package. This package has a lot of dependencies, including
installation of netCDF, and I haven't yet been able to get
library(clim.pact) to work on a Mac OS 10.4.6. A previous request for
help with the Mac problem yielded no results, so now I wonder if I could
just extract the definitions for the couple
2004 Jun 08
1
binary data
What's the preferred way in R for handling samples with binary data
(like chemical fingerprints encoded as hexadecimal strings with 0's and
1's indicating the absence or presence of chemical features) in methods
such as clustering and MDS. Do you always have to expand the fingerprint
data into individual variables (which can be a few hundreds) or can they
be used directly as binary
2010 Mar 16
2
Problem in installing ncdf package
Dear R communities
Could you please help me with the problem I encounter while trying to install the ncdf package?
download.packages("ncdf", "/home/user/soft/R/library/")
cd /home/user/soft/R/library
R CMD INSTALL ncdf_1.6.tar.gz # fail
sudo R CMD INSTALL ncdf_1.6.tar.gz # fail
cd /home/user/soft/
# download
1998 Nov 20
2
R and hdf
Hi,
I've been playing with R for only a few days, so I'm not terribly
familiar with it yet. Has anyone ever done any work using HDF or
NetCDF files with R? Both file formats have libraries which can be
linked to a program to read and write data to these formats. Is this
sort of thing possible with R? We are planning to use the HDF format to
store experimental data collected by some