[R-sig-Geo] "rasterize" shape file return empty raster

2014-07-18 Thread Julie Lee-Yaw
Hi I have a shape file (initially produced by intersecting two other shapefiles using the PBSmapping functions) and I would like to turn it into a raster based on a raster layer. This has worked for me previously: r<-rasterize(myShape, myRaster, mask=TRUE) However, my end result is a "blank"

[R-sig-Geo] Unexpected behavior of raster "mask" function

2014-07-18 Thread Alex Zvoleff
I am using the mask function in the raster package (2.2-38) to mask out areas within an image that are outside an area of interest (AOI). There are NAs within this AOI that are meaningful - after masking the image I am using freq to tabulate these NAs along with the other values in my AOI. For this

Re: [R-sig-Geo] semivariogram geoR

2014-07-18 Thread carolina . lang
DEar Alessandra, In the function variog(), you complete with uvec=(??), this allow you define the lag distance and max.dist= ??, define the max distance for your experimental variogram or domain, An Example: uvec=seq(0,37040,by=926), max.dist=37040 regards, Carolina Lang Carolina

Re: [R-sig-Geo] R "frozen" in GRASS

2014-07-18 Thread Roger Bivand
Please do not post HTML. Please rather use the grass-stats or grass-users list, as this is not an R problem, but more likely an issue with your installation of GRASS. The GRASS GUI is the source of the error messages. In any case, did you try starting R from the command line in the regular ter

Re: [R-sig-Geo] Cannot properly import MODIS MOD07_L2 .hdf files into R using rgdal

2014-07-18 Thread Florian Detsch
The solution using readGDAL(..., as.is = TRUE) worked out fine and all SDS layers are in a valid range now. Thank you, Loïc and Jonathan, for the precious input. Florian On 17.07.2014 18:49, Dutrieux, Loic wrote: Hi Florian, Jonathan, I remember experiencing similar issues a while back with

[R-sig-Geo] semivariogram geoR

2014-07-18 Thread Alessandra Carioli
Dear bloggers, I am using geoR package to do semivariograms (variog). I would like to specify 50km distances with a maximum of 2000km distance and I am at loss on how to do it. The Coordinates of my shape file are projected longitude and latitude A 13.515094 37.44574 B 8.664

Re: [R-sig-Geo] R "frozen" in GRASS

2014-07-18 Thread Luis Miguel Royo Pérez
On 16/07/14 18:56, Luis Miguel Royo Pérez wrote: > Hi everyone, > > I'm new in this matter. I've intalled R GRASS and the packages needed > for use R and GRASS together. When I run GRASS I type this in the console: > > R --save > > And I get this: > > R version 3.1.1 (2014-07-10) -- "Sock it to M