Re: [R-sig-Geo] spacetime: remove NAs from STSDF object

2011-08-26 Thread Christian Kamenik
Dear Edzer, my.STSDF <- as(my.STFDF, "STSDF") does exactly what it should. I have a STSDF object with several columns of data that have NAs for one variable but not for other variables. I wanted to keep only those observations in space and time that had data (no NAs) for all variables (see complet

[R-sig-Geo] spacetime: remove NAs from STSDF object

2011-08-22 Thread Christian Kamenik
- Oeschger Centre for Climate Change Research, Institute of Geography& Institute of Plant Sciences University of Bern http://www.stomatocysts.unibe.ch/kamenik mailto: christian.kame...@giub.unibe.ch Postal address: Dr. Christian Kamenik Institute of Geography Erla

Re: [R-sig-Geo] Subsetting RasterBrick very slow

2011-07-06 Thread Christian Kamenik
Dear Robert, Thank you for sorting this out. And thanks to all the others for their valuable comments. Christian -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Subsetting-RasterBrick-very-slow-tp6537890p6554009.html Sent from the R-sig-geo mailing list archive at Nabble

[R-sig-Geo] Subsetting RasterBrick very slow

2011-07-01 Thread Christian Kamenik
an -- --- Oeschger Centre for Climate Change Research, Institute of Geography& Institute of Plant Sciences University of Bern http://www.stomatocysts.unibe.ch/kamenik mailto: christian.kame...@giub.unibe.ch Postal address: Dr. Christian Kamenik Instit

Re: [R-sig-Geo] Converting array into raster brick

2010-12-22 Thread Christian Kamenik
Works like a charm - awesome! Many thanks, Christian Christian, You should also be able to do this: out<- setValues(x, xx) (where x is a RasterBrick and xx a matching 3 dimensional array) Robert On Wed, Dec 22, 2010 at 3:06 AM, Christian Kamenik wrote: Dear all, I replaced my la

Re: [R-sig-Geo] Converting array into raster brick

2010-12-22 Thread Christian Kamenik
sig-geo ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- --- Oeschger Centre for Climate Change Research, Institute of Geography& Institute of Plant Sciences University of Bern http://www.s

[R-sig-Geo] Converting array into raster brick

2010-12-16 Thread christian . kamenik
Dear all, I needed to convert an array into a RasterBrick object. The output did not need to be written to memory, as assessed by canProcessInMemory(). The only way to put the data into the RasterBrick that worked for me was layer by layer: for (l in 1:nlayers(x)) x <-setValues(x,values=a

[R-sig-Geo] Spatial mean

2010-12-13 Thread Christian Kamenik
Christian -- --- Oeschger Centre for Climate Change Research, Institute of Geography& Institute of Plant Sciences University of Bern http://www.stomatocysts.unibe.ch/kamenik mailto: christian.kame...@giub.unibe.ch Postal address: Dr. Christian Kamenik Institute of Geography Erlachstrasse 9a