Displaying 20 results from an estimated 149 matches for "ncdf".
Did you mean:
ecdf
2013 Mar 07
1
install error - Netcdf library (linux)
Hi All,
i'm on a debian linux 64bit,
i'm tying to install the netcdf intraface, i tried both ncdf and ncdf4
but trying to build i received the error :
(i have necdf installed on my machine and it is able to fiund it .. no missed .h)
epy at epinux:~$ sudo R CMD INSTALL --configure-args="-with-netcdf_incdir=/usr/include -with-netcdf_libdir=/usr/lib" ncdf4_1.8.tar.gz
* installing to...
2013 Mar 07
0
install Netcdf library (linux)
Hi All,
i'm on a debian linux 64bit,
i'm tying to install the netcdf intraface, i tried both ncdf and ncdf4
but trying to build i received the error :
(i have necdf installed on my machine and it is able to fiund it .. no missed .h)
epy at epinux:~$ sudo R CMD INSTALL --configure-args="-with-netcdf_incdir=/usr/include -with-netcdf_libdir=/usr/lib" ncdf4_1.8.tar.gz
* installing to...
2010 Sep 07
1
adding variable to netCDF file
I would like to open an existing netCDF file and add a variable to it.
I am using the ncdf package. This test code gives the idea of what I am
trying to do:
library(ncdf)
print('here we go')
print('first, construct netCDF file')
t<-dim.def.ncdf('t','',1:1,unlim=T,create_dimvar=F)
print('defining first vars')
a<-var.def.ncdf('a',...
2010 Mar 09
1
ncdf installation
Friends,
I tried to install ncdf package in ubuntu with the following command.
R CMD INSTALL
--configure-args="-with-netcdf_incdir=/apps/netcdf/4.0.1/gcc/include
-with-netcdf_libdir=/apps/netcdf/4.0.1/gcc/lib" ncdf_1.6.tar.gz
The installation was stopped throwing the following error. I tried to google
it but didnt find...
2009 Aug 05
0
ncdf package problem - put.var.ncdf
Dear all,
I am attempting to convert 10 NetCDF files into a single NetCDF file, due to the data input requirements of a model I hope to use. I am using the ncdf package, version 1.6. The data are global-scale water values, on a monthly basis for 10 years (ie. 120 months of data in total; at present the data are separated by year, with 12 months of data in each file - mrunoff_1986 through to mrunoff_1995). For each month there are 720 longitude x 360 latitu...
2009 Nov 10
3
NetCDF output in R
Dear CSAG R users,
I will be glad if someone can point out what I am doing wrong or not doing at all in this.
I am trying to write out netcdf file in R. I have 26 time step but only the first time step is written.
For example:
>library(ncdf)
>path <- '/home/work/'
>forecast <- open.ncdf(paste(path,'cam.1980.2005.nc',sep=""))
> fore <- get.var.ncdf(forecast,'ppt')
> lon <- get.var.ncdf(forecast,'lon')
> lat <- get.var.ncdf(forecast,'lat')
>dim(fore)[3]
&...
2009 Nov 10
3
NetCDF output in R
Dear CSAG R users,
I will be glad if someone can point out what I am doing wrong or not doing at all in this.
I am trying to write out netcdf file in R. I have 26 time step but only the first time step is written.
For example:
>library(ncdf)
>path <- '/home/work/'
>forecast <- open.ncdf(paste(path,'cam.1980.2005.nc',sep=""))
> fore <- get.var.ncdf(forecast,'ppt')
> lon <- get.var.ncdf(forecast,'lon')
> lat <- get.var.ncdf(forecast,'lat')
>dim(fore)[3]
&...
2008 Jan 22
1
install ncdf package on a 64-bit machine
Dear All,
I recently got a 64bit machine and had netcdf-3.6.2 installed. Then I tried
to install ncdf package but got the following error message when using
netcdflib:
gcc -std=gnu99 -I/home/ljin/share/R-2.6.1/include
-I/home/ljin/share/R-2.6.1/include
-I. -I/usr/local/include -fpic -g -O2 -c ncdf2.c -o ncdf2.o
gcc -std=gnu99 -I/home/ljin/share/R-2.6.1/include
-I/home/ljin/share/R-2.6.1/includ...
2010 Jun 16
1
Help asked for automated generation of ncdf variables
Hi,
I'm using the "ncdf" library for creating ncdf files.
But I need to create about 100 variables per file (e.g. single rivers),
So I do not like to create each variable separately.
Unfortunately I found no way to make this work, as I'm unable to create a
correct list of class "var.ncdf".
###code pie...
2010 Mar 24
1
install ncdf package
Dear R users
I am attempting to add lncdf_1.6.tar.gz libraries within R, and have
failed. I have R version 2.8.1, and are running on fedora 10 Kernel Linux
2.6.293.-60.fc10.x86_64.
I've run R CMD INSTALL ncdf_1.6.tar.gz
and I have the following
---------------
* Installing to library '/usr/lib64/R/library'
* Installing *source...
2010 Sep 23
1
NetCDF file: adding a variable
I am trying to create a NetCDF file with bathymetry (a matrix) and then to
add a grid type (an integer) as variables.
This is the relevant part of the code:
library(ncdf)
wfile="my_file.nc"
msv=-10
grdtp=2
# Dimensions
d1=dim.def.ncdf("lon","degrees",as.double(lon))
d2=dim.def.ncdf("lat","degrees",as.double(lat))
# Variables
bathymetry=var.def.ncdf("bathymetry","m",list(d1,d2),msv,longname=&quo...
2009 Aug 04
0
Writing a NetCDF file in R
Dear all,
I am attempting to convert 10 NetCDF files into a single NetCDF file, due to the data input requirements of a model I hope to use. I am using the ncdf package, version 1.6. The data are global-scale water values, on a monthly basis for 10 years (ie. 120 months of data in total; at present the data are separated by year, with 12 months of data in each file - mrunoff_1986 through to mrunoff_1995). For each month there are 720 longitude x 360 latitu...
2010 Oct 27
1
"non-numeric argument to binary operator" error while reading ncdf file
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 could help me.
I am using R version 2.11.1 (2010-05-31) in a machine with Linux
2....
2011 Sep 24
2
ncdf - install error
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.
Thanks.
Muhammad
* installing *source* package ?ncdf? ...
checking for nc-config... /usr/local/bin/nc-config
configure: creating ./config.status
config....
2008 Jul 09
1
netCDF to TIFF
...e thus
far that I adapted from an example on the UCAR website.
Thanks in advance!
-Dan
--------------------------------------------------------------------------------------------------
# Set working directory and load library
setwd('C:/Users/steinber/Documents/DATA/ENSEMBLES/')
library(ncdf)
library(rgdal)
library(chron)
library(fields)
# Read netCDF file
tg.ncdf = open.ncdf('tg_0.25deg_CRU_version1.0.nc')
tg.ncdf
lonmat = get.var.ncdf(nc=tg.ncdf,varid="longitude") # reads entire matrix
latmat = get.var.ncdf(nc=tg.ncdf,varid="latitude") # ditto
tim...
2012 Jul 04
3
Please help
...I am a research student in environment. I have only little programming knowledge. I am currently doing the last project about rainfall impact on ground water quality in an area. It happens that I have to use R to read rainfall data (3 dimension) from ASC file (*.asc), and then write them into one NCDF file (*.nc).
I have been working very hard on study R, but I still can not fix the problem. Could someone please as kind as point out that what the problems are in my R script?
Firstly, this is an example of data in asc file:
NCOLS 241...
2009 Apr 21
1
ncdf,RNetCDF
Friends,
Someone please share your experience in installing ncdf and RNetCDF in
fedora10. I am not able make it work as it throws me the following error. My
R version is 2.8.0.
> library(ncdf)
unable to load shared library '/usr/lib/R/library/ncdf/libs/ncdf.so':
/usr/lib/R/library/ncdf/libs/ncdf.so: cannot restore segment prot after
reloc: Permis...
2011 Sep 12
1
Problem in put.var.ncdf
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():
# Get variables
#---------------------
data1 <- open.ncdf("PREC_me_03-1500.nc")
prec1 <- get.var.ncdf(data1,"PRECT")
dim.time <- get.var.ncdf(data1,"time2")
close.ncdf(data1)
# Calculation
#---------------------
spi24.me <- spi.func(prec1)
--&...
2012 Aug 21
1
ncdf - writing variable to a file
Hello,
I have a problem writing a variable to an existing file.
Below is a part of my script and how it fails.
I can't find "create.var.ncdf" in help
Thanks for any help.
Mark
nc <- open.ncdf(ncname, readunlim=FALSE, write=TRUE )
missing <- 1.e+30
xdim <- nc$dim[["west_east"]]
ydim <- nc$dim[["south_north"]]
tdim <- nc$dim[["Time"]]
lscalevar <- var.def.ncdf(scalenames[ivar],
...
2009 Apr 21
0
joined R-today [SELinux]
...mpiled to have position independent code.
I.e., the -fpic or -fPIC flag was not supplied when
compiling. Your build log showed that -fpic was used
when compiling your code, but the 3rd party library,
libnetcdf.a may not have been compiled this way.
The command
eu-findtextrel /usr/lib/R/library/ncdf/libs/ncdf.so
will tell you which parts of ncdf.so were not compiled
with -fpic.
If you cannot recompile libnetcdf.a then you may have
to turn off some the security enhancements.
See
http://people.redhat.com/drepper/textrelocs.html
and
http://people.redhat.com/drepper/selinux-mem.html
for te...