Displaying 20 results from an estimated 1000 matches similar to: "-1e+34"
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
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]
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')
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
2010 Feb 25
0
missing values in 'ncdf', integer versus byte
I'm working with the ncdf package, and I'm seeing a behavior which I
am unsure whether it is a bug or a feature. I am creating a variable,
which I make with the precision of "byte" and also set a missing
value, When I put into this variable, all my NA values are put in
properly as the missing value. However, when I read it back, I get
the missing value rather than NA.
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] "------------------------"
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
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 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
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]
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 <-
2011 May 06
1
read a netcdf file _Fill_value=-32768
Hello
I am a new user of R .
and I ve problem with R and netcdf .
I succed installation , I could use all examples .
But when I take my netcf it is different .
I want to do statistic on this kind of file .
1)
first calculate mean .
my data is like that
through ncdump -h test.nc
netcdf test {
dimensions:
lat = 301 ;
lon = 401 ;
time = UNLIMITED ; // (80 currently)
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
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
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 piece
river=list(mode='var.ncdf', length=nriv)
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 <-
2007 Aug 08
0
Creating netcdf from table
Hi!
I have a table with 3 columns, 2 for long/lat coordinates and 1 for values
(radon concentration). I have Tables for every week of the year 2006, always
same coordinates but other values, i.e. time series. Now I want to create a
NetCDF file for, which is much easier to handle than 52 tables. I tried the
following for the first dataset (i.e first week):
2012 Jul 04
3
Please help
Dear All,
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
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
2013 Jan 18
2
How to re-project ease( Equal Area Scalable Earth) grid with a ~25 km cylindrical projection to WGS84 0.25 degree?
I have nc files for global soil moisture,here is one file
https://echange-fichiers.inra.fr/get?k=f9DDllPKdUKs5ZNQwfq
from the metadata ,the projection is cylindrical and the resolution is 25
km(it is based on authalic sphere based on International 1924 ellipsoid).As
I want to compare with other data, I have to make them identical.
- my other data are in WGS84 with 0.25*0.25 degree resolution