Displaying 20 results from an estimated 100 matches similar to: "missing values in 'ncdf', integer versus byte"
2008 Nov 24
0
spatial subset of ncdf
dear
I was lokking for a solution or an example on the internet for quite a time
but since haven?t found an answer yet, I'd like to ask a maybe to simple
question:
I have a large ncdf-file with five dimension.
temperature (t2m), the variable against, lat, lon and time. (height is
included as well)
the structure is
[1] "file C:/RDaten/t2m.ETH.HC_A2.nc has 5 dimensions:"
[1]
2012 Jun 29
1
number of items to replace is not a multiple of replacement length
Hello,
I'm a complete newbie to R so sorry if this is too basic..:-S
I have to modify some scripts someone else did to make it work with my data.
For some reason, one of the scripts which were supposed to work is not, and
I get the error message "number of items to replace is not a multiple of
replacement length".
The script is this one:
*open_lpj_nc_gpp <-
2010 Nov 05
0
NaN, ncdf
Dear All,
Can anyone please let me know how exactly ncdf deals with NaN.
I am trying to pass in a vector of data that has some NaN in it, into a variable in NetCDF.
dimX <- dim.def.ncdf("X","count",(1:6))
dimY <- dim.def.ncdf("Y","count",(1:3))
var1 <-
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
2011 Sep 07
1
Error: in routine alloca() there is a stack overflow: thread 0, max 535822282KB, used 0KB, request 24B
Dear Colleagues:
Through your help an R related installation issue was resolved, but I now
have the following usage issue.
On any "get.var.ncdf" usage I am seeing:
Error: in routine alloca() there is a stack overflow: thread 0, max
535822282KB, used 0KB, request 24B
The same error is posted on a file as small as 50MB and as large as 500GB,
with ulimit set to unlimited. I
2017 Aug 02
3
Remove attribute from netcdf4 object
Dear all
For a model I need to combine several netCDF files into one (which works fine). For better overview I'd like to delete/remove some of the attributes. Is there a simple way doing this?
I'm using the package netcdf4, which creates an object of class(nc) = "ncdf4". It seems that for earlier versions of netcdf objects, there was the function att.delete.nc{RNetCDF}. But
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')
2017 Aug 02
0
Remove attribute from netcdf4 object
Le 02/08/2017 ? 12:03, raphael.felber at agroscope.admin.ch a ?crit :
> Dear all
>
> For a model I need to combine several netCDF files into one (which works fine). For better overview I'd like to delete/remove some of the attributes. Is there a simple way doing this?
>
> I'm using the package netcdf4, which creates an object of class(nc) = "ncdf4". It seems that
2017 Aug 02
0
Remove attribute from netcdf4 object
Dear Marc
Thanks for your remark. I don't want to use both packages. I mentioned the package RNetCDF to show that there is a similar function I' d like to use.
Raphael
Von: Marc Girondot [mailto:marc.girondot at u-psud.fr]
Gesendet: Mittwoch, 2. August 2017 14:51
An: Felber Raphael Agroscope <raphael.felber at agroscope.admin.ch>; r-help at r-project.org
Betreff: Re: [R] Remove
2017 Aug 02
0
Remove attribute from netcdf4 object
Hi Marc
That's a workaround I can use. Thanks. I'm a newbie regarding netCDF data. Is there any information I'm losing when switching between the packages?
Raphael
Von: Marc Girondot [mailto:marc.girondot at u-psud.fr]
Gesendet: Mittwoch, 2. August 2017 15:13
An: Felber Raphael Agroscope <raphael.felber at agroscope.admin.ch>
Betreff: Re: AW: [R] Remove attribute from netcdf4
2012 Jan 05
1
[ncdf] programmatically copying a netCDF file
How to programmatically (i.e., without no or minimal handcoding) copy
a netCDF file? (Without calling
> system("cp whatever wherever")
:-) Why I ask:
I need to "do surgery" on a large netCDF file (technically an I/O API
file which uses netCDF). My group believes a data-assimilation error
caused a data variable to be corrupted in a certain way, so I'm going
to
2009 Nov 17
1
How to plot an image in R
Dear all
Im new in R
I have a necdf data set that I want to plot :
this is my data set
[1] "file Tmax.DJF.daily.1981_1999.echama2.nc has 4 dimensions:"
[1] "longitude Size: 127"
[1] "latitude Size: 110"
[1] "ht Size: 1"
[1] "t Size: 1680"
[1] "------------------------"
[1] "file Tmax.DJF.daily.1981_1999.echama2.nc has 1
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
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,
2009 Sep 27
3
Teach me how to transpose in R
Hi guys,
I need your help!!
My goal is to make a csv file from ncdf file.
This is the code i've used :
> hyo=open.ncdf("C:/CRUTEM3.nc")
> hyo
[1] "file C:/CRUTEM3.nc has 4 dimensions:"
[1] "longitude Size: 72"
[1] "latitude Size: 36"
[1] "unspecified Size: 1"
[1] "t Size: 1916"
[1] "------------------------"
2012 Mar 17
0
-1e+34
I am getting theses values when I disply my ncdf file
1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34
[227,] -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34
[228,] -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34
[229,] -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34
[230,] -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34 -1e+34
2011 May 10
1
Reading a large netCDF file using R
I got a netCDF file from a climate group and wanted to aggregate the data.
The file summary looks like this
library(ncdf)
nc=open.ncdf("NCEP_prec_1949_58.nc")
> nc
[1] "file NCEP_prec_1949_58.nc has 4 dimensions:"
[1] "Time Size: 14608"
[1] "lat Size: 99"
[1] "lon Size: 199"
[1] "DateStrLen Size: 20"
[1]
1999 Jan 02
3
.C
Happy 1999!
I've been celebrating the holidays by (finally) getting to the port of our
S+ NetCDF routines to R, which I'm trying to make into a library. At the
moment, there are two issues I'd appreciate advice on:
1. Is support for mode "single" data planned anytime soon in R? A lot of
our NetCDF files contain "single" data and having to coerce into
2011 Mar 21
1
Lat Lon NetCDF subset
Hi,
I'm trying to read a subset of a netcdf file into R, but although I'm
relatively experienced using R, I'm still new to netCDF files, so this may
be a very simple/stupid question!
I've included an example of the type of file I'm looking at here.
www.met.reading.ac.uk/~swp06hg/ccd1983_01-dk1_20.nc (~7Mb)
It's a 2D array of the variable CCD along with its lat and
2006 Aug 28
0
Adding OPeNDAP to the ncdf package on windows
Hi:
Russ Moffit of our Honolulu Lab has made a modification to the R
netcdf package 'ncdf' so that it can access remote netcdf files
using OPenDAP (http://www.opendap.org). The package works on Linux,
and with help from Don MacQueen was also ported to Macintosh OS X.
We have had a lot of demand for this to be ported to Windows also,
but it is beyond our capabilities. If there is