[R-sig-Geo] Raster-extract function with cluster...

2016-04-05 Thread Guillermo E. Ponce-Campos
Hi, Does anyone has experienced issues using "extract" function from raster Package using a cluster? I want to make a simple extraction of pixels from rasters using a multi-polygon shapefile. I'm just doing something like: beginCluster(20) # Create list with raster filenames my700.rasters <-

[R-sig-Geo] clusterR + rasterToPoints

2015-11-05 Thread Guillermo E. Ponce-Campos
Is it possible to take advantage of multi-cores with function rasterToPoints for converting a stack of several rasters into a x,y,z data frame ? Thanks, Guillermo [[alternative HTML version deleted]] ___ R-sig-Geo mailing list

[R-sig-Geo] Using rasterize with parallel...

2014-09-18 Thread Guillermo E. Ponce-Campos
GetXYfromRaster - function (vraster.template, vshp.file, vext) { if (nchar(vshp.file) 1) { vshp.file - tk_choose.files(caption=Select shapefile...) vshp.file - readShapeSpatial(vshp.file) } else { vshp.file - readShapeSpatial(vshp.file) } ## Cluster for parallelization cl -

[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)

Re: [R-sig-Geo] writeRaster issue

2014-04-22 Thread Guillermo E. Ponce-Campos
graphics grDevices utils datasets methods base other attached packages: [1] rgdal_0.8-16 raster_2.2-31 sp_1.0-15 loaded via a namespace (and not attached): [1] grid_3.1.0 lattice_0.20-29 On Tue, Apr 22, 2014 at 11:09 AM, Guillermo E. Ponce-Campos gepo...@gmail.com wrote: Hi

Re: [R-sig-Geo] Plotting NetCDF layer over a map as a raster...

2013-10-15 Thread Guillermo E. Ponce-Campos
if x and y are regularly spaced. Robert On Mon, Oct 14, 2013 at 11:04 AM, Guillermo E. Ponce-Campos gepo...@gmail.com wrote: Hello: I have been trying to plot a netcdf layer as a raster and have found one single issue that I'd like know if I'm doing something wrong. If I use

Re: [R-sig-Geo] Plotting NetCDF layer over a map as a raster...

2013-10-15 Thread Guillermo E. Ponce-Campos
normally be an optional bonus). So what you could do is (a) write the data provider and (b) transform the lon/lat values to the projection used, and use that to make a raster. Robert On Mon, Oct 14, 2013 at 11:22 PM, Guillermo E. Ponce-Campos gepo...@gmail.com wrote: Hi Robert: Thank you

[R-sig-Geo] Plotting NetCDF layer over a map as a raster...

2013-10-14 Thread Guillermo E. Ponce-Campos
it in other software such as GRASS or ArcMap and is still showing up with the offset. Thanks for any help with this. Guillermo -- *Guillermo E. Ponce-Campos* *PGP Key ID*: 0x57EDC060 [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig