Re: [R-sig-Geo] Same mask for two rasters, but obtaining different extents in R

2017-03-16 Thread Vijay Ramesh via R-sig-Geo
not aligned after cropping. > > Have you checked the original extent and resolution? > > Sarah > > On Tue, Mar 14, 2017 at 5:31 PM, Vijay Ramesh via R-sig-Geo > <r-sig-geo@r-project.org> wrote: > > I loaded a shapefile in R, and cropped and masked it with the same mas

[R-sig-Geo] Same mask for two rasters, but obtaining different extents in R

2017-03-15 Thread Vijay Ramesh via R-sig-Geo
I loaded a shapefile in R, and cropped and masked it with the same mask, but I get different extents. Any suggestions? Code below: library(raster) library(rgdal) library(GISTools) library(sp) library(maptools) ##Loading the first mask Mask <-

Re: [R-sig-Geo] Error in writeRaster for signature RasterPCA

2017-03-08 Thread Vijay Ramesh via R-sig-Geo
princomplist > ## map 3888000 RasterBrick S4 > > dim(pre_pca$map) > ## [1] 900 21602 > > # Plot the 1st comp. > ggR(pre_pca$map[[1]]) > > On 03/07/2017 01:06 PM, Vijay Ramesh via R-sig-Geo wrote: > > I am currently trying to obtain two rasters that are t

[R-sig-Geo] How many polygons does a single polygon intersect with?

2017-03-08 Thread Vijay Ramesh via R-sig-Geo
I currently possess a shapefile that consists of >5000 polygons. I would like to know, for each polygon, how many other polygons it intersects with and the names of each polygon it intersects with? My output should be something like this: [image: enter image description here]

[R-sig-Geo] Error in writeRaster for signature RasterPCA

2017-03-08 Thread Vijay Ramesh via R-sig-Geo
I am currently trying to obtain two rasters that are the Principal component axes 1 and 2 for a list of bioclimatic variables that I am using. I am using the rasterPCA() function that exists in the RStoolbox in R, but I am unable to write it to a raster. Below is the code and the error that I am

[R-sig-Geo] Error in GDAL for library MODIS

2017-04-25 Thread Vijay Ramesh via R-sig-Geo
I keep getting a GDAL error when I try to use the MODIS library to download and process MODIS data. PROCESSING: ___ GDAL : Not available. Use 'MODIS:::checkTools('GDAL')' for more information! Note: I have rgdal installed, along with GDAL separately installed from osgeo4w.