Re: [R-sig-Geo] writeRaster issue

2014-04-22 Thread Andrew Vitale
It runs on my system. I would still suggest updating to R 3.1.0 and making sure raster and rgdal are the latest versions. I'm also running it in the terminal, not through something like R Studio. That's really all I can offer. Good luck! -Andrew library(raster) library(rgdal) load("~/Downl

Re: [R-sig-Geo] writeRaster issue

2014-04-22 Thread Guillermo E. Ponce-Campos
Thanks Andrew... Here is the raster layer object I can save as geoTif on Windows XP and 7 but not in Centos... https://www.dropbox.com/s/t8rqkvwqnam3imm/rasterLayer.RData As you can see, in the Centos box I have a newer version for the rgdal and raster packages. Thanks, Guillermo On Tue, Apr 2

Re: [R-sig-Geo] writeRaster issue

2014-04-22 Thread Andrew Vitale
Hey Guillermo, All I can add is that I'm unable to reproduce this on my Lubutu 14.04 laptop. Perhaps you should try updating R and your packages? ## The following code plots as expected: setwd("~/Desktop") library(raster) r <- raster() r[] <- 1:ncell(r) * 0.001 plot(r) r2 <- writeRaster(r, "

[R-sig-Geo] Errors with stConstruct() and STFDF()

2014-04-22 Thread Cyrus Mohammadian
Hey everyone, I’m new to R and this forum so I apologize in advance for any ambiguity in my question. What I want to do is create a spatiotemporal object (class st) out of an esri shapefile with multiple features and csv file containing data in long format (each row is one observation in space-t

[R-sig-Geo] errors with stConstruct() and STFDF()

2014-04-22 Thread Cyrus Mohammadian
Hey everyone, I’m new to R and this forum so I apologize in advance for any ambiguity in my question. What I want to do is create a spatiotemporal object (class st) out of an esri shapefile with multiple features and csv file containing data in long format (each row is one observation in space-t

[R-sig-Geo] writeRaster issue

2014-04-22 Thread Guillermo E. Ponce-Campos
Hi: Is there any known issue on using writeRaster under Windows vs Linux? I have been trying to write a rasterlayer as a geotif in a Linux (centos) machine with no success... I have this raster layer: > varTmpRaster class : RasterLayer dimensions : 720, 1440, 1036800 (nrow, ncol, ncell)

[R-sig-Geo] Package "genalg". Function "rbga.bin"

2014-04-22 Thread M.E.
I am using the "genalg" Package (Function rgba.bin) (http://cran.r-project.org/web/packages/genalg/genalg.pdf) for some calculations in R. For me it isn't very clear, how to set the "zeroToOneRatio" for the "rbga.bin" function. Does anybody has some suggestions for me? Many Thanks in advance!!