Displaying 11 results from an estimated 11 matches for "varsize".
2006 Dec 08
3
how to create data.frame with dynamic count of values
...rm(4)
N3 <- rnorm(4)
N4 <- rnorm(4)
X1 <- LETTERS[1:4]
###################
nams <- c(paste("N", 1:4, sep = ""), "X1")
dat <- data.frame(lapply(nams, get))
names(dat) <- nams
dat
But I need also to create a dynamic count of numeric vectors
items = 15
VarSize <-10
N1 <- rep(0,VarSize)
N2 <- rep(0,VarSize)
N3 <- rep(0,VarSize)
N4 <- rep(0,VarSize)
N5 <- rep(0,VarSize)
...
N15<- rep(0,VarSize) # 15 items
Thank you in advance
Knut
2011 Apr 01
1
filled contour plot with contour lines
I'm stumped, can anyone find my error in this sequence.
for(j in 1:(varsize[4]-1))
temp <- get.var.ncdf(nc=input,
varid="p_foraging",c(1,1,j),c(varsize[1],varsize[2],1))
filled.contour(x, y, temp, color = terrain.colors,
plot.title = title(main = paste("Everglades Wood Stork
Foraging Potential \nYear", (2000+j)),...
2008 Jul 09
1
netCDF to TIFF
...ditto
timearr = get.var.ncdf(nc=tg.ncdf,varid="time") # reads entire time array
targettime = julian(x=1, d=1, y=2002, origin=c(month = 1, day = 1,
year = 1950))
inds = (1:dim(timearr))
tind = inds[targettime == timearr]
ndims = tg.ncdf$var[['data']]$ndims
varsize = tg.ncdf$var[['data']]$varsize
start = c( 1, 1, tind)
count = c(varsize[1], varsize[2], 1)
# Read in data slice:
tg.data = get.var.ncdf(nc=tg.ncdf,varid="data",start,count)
tg.data[tg.data == -9999] = NA
tg.data = tg.data/100.0
x = 1:nrow(tg.data) #...
2015 Nov 14
2
Inexplicable ASAN report. Code generation bug?
...> - Can you prepare a minimized example?
Pretty recent, I updated a couple days ago. I tried to minimize the
attached but at the same time I didn't want to lose too many unions
and casts in case it didn't trigger any more.
$ clang -fsanitize=address -Wall numeric-asan-test.c
$ ./a.out
VARSIZE 6
NDIGITS 0
WEIGHT 0
SIGN 0
DSCALE 0
$ clang -fsanitize=address -O2 -Wall numeric-asan-test.c
$ ./a.out
VARSIZE 6
=================================================================
==19982==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60200000eff4 at pc 0x0000004d4986 bp 0x7ffe14e2cb9...
2011 Dec 12
2
i can't read large NETCDF file like CRU
i use library(ncdf) to read this file as follow
library(ncdf)
sst.nc = open.ncdf(title)
lonall = get.var.ncdf(sst.nc,'lon')
latall = get.var.ncdf(sst.nc,'lat')
precip = get.var.ncdf(sst.nc,'pre')
close(sst.nc)
if i use this method my pc freeze and not respond until i restart it is
there
--
View this message in context:
2010 Oct 27
1
"non-numeric argument to binary operator" error while reading ncdf file
..."vobjtovarid: entering with varid=tasmax"
[1] "Variable named tasmax found in file with varid= 4"
[1] "vobjtovarid: returning with varid deduced from name; varid= 4"
[1] "get.var.ncdf: ending up using varid= 4"
[1] "ndims: 3"
[1] "get.var.ncdf: varsize:"
[1] 68 40 21275
[1] "get.var.ncdf: start:"
[1] 1 1 1
[1] "get.var.ncdf: count:"
[1] 68 40 21275
[1] "get.var.ncdf: totvarsize: 57868000"
[1] "Getting var of type 4 (1=short, 2=int, 3=float, 4=double, 5=char,
6=byte)"
[1] "get.var.ncdf...
2015 Nov 12
3
Inexplicable ASAN report. Code generation bug?
I'm struggling to explain an ASAN report I'm now getting that I didn't
get previously on the same code. In fact the report only happens with
-O2 and not when I remove the -O flags which makes it hard to debug
and makes me suspect it's dependent on exactly which instructions the
code generation decides to access the bytes involved. Afaict the C
code shouldn't be accessing the
2010 Dec 13
0
Problem with retrieve.nc of clim.pact
...:0.0"
[1] "Time origin: (year-month-day) 1 - 1 - 1"
[1] "Time unit: hours"
[1] "Latitudes: 0 - 90 degrees_north"
[1] "Longitudes: 0 - 357.5 degrees_east"
[1] "Reading hgt"
[1] "read the data from EASTERN hemisphere"
start count varsize
[1,] 1 144 144
[2,] 1 37 37
[3,] 1 1 1
[4,] 1 31 11475
[1] "dim dat:"
[1] 31 1 37 144
[1] 144 0 37 1 31
[1] 0.0 357.5
[1] 144 37 1 31
[1] "4D:"
[1] 31 1 37 144
[1] "Sort longs and lats"
[1] "First &a...
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
2015 Jan 24
0
[ANNOUNCE] xorg-server 1.16.99.902
...glx: Request length checks for SetClientInfoARB [CVE-2014-8098 5/8]
glx: Length-checking for non-generated vendor private requests [CVE-2014-8098 6/8]
glx: Length checking for non-generated single requests (v2) [CVE-2014-8098 7/8]
glx: Pass remaining request length into ->varsize (v2) [CVE-2014-8098 8/8]
glx: Dynamically compute attribute slot in GetDrawableAttributes
glx: Add hack for GLX-1.2-style naked windows to GetDrawableAttributes
dix: make RegionInit legal C++
Alan Coopersmith (22):
Add -iglx & +iglx to Xserver.man
unchecked malloc...
2013 Mar 28
4
Custom fact or function ? looking for opinion
Hi,
I''m in the progress of writing custom facts to retrieve our network
configuration for the nodes from the openldap ENC.
Now, since the puppetmaster has also access to the ldap server, I''m
thinking to move the custom facts to a function, so it runs on the
puppetmaster only, end not on every node.
I just wanted to here some other opinions about this issue.
Thx
Johan