Re: [R-sig-Geo] Circular density estimate to a raster for mapping in GIS - help

2014-03-03 Thread Raphaël Lavoie
Hi all, I created a circular density estimate using package circular from bearings (directions) from 0 to 360° assuming a von Mises distribution. # library(circular) Bearing- c(186,197,158,206,206,185,186,224,183,173,175,240,201,197,

[R-sig-Geo] Problem installing rgdal on linux CentOS 6

2014-03-03 Thread Gregory Duveiller
Dear list, I am relatively new to linux and I am trying, unsuccesfully, to install 'rgdal' on a CentOS machine. When I type in R: $ install.packages('rgdal') the installation stops with the following error: checking for proj_api.h... no configure: error: proj_api.h not found in standard or

Re: [R-sig-Geo] GSTAT ordinary kriging prediction with large observation

2014-03-03 Thread Moshood Agba Bakare
Dear Edzer, Thanks for the guide. I tried to use option nmax=100 and it works perfectly. This implies I am using local interpolation of 100 observations to predict a value at unknown locations rather than global interpolation approach. I think this is better considering large size of my

[R-sig-Geo] R raster object - an ArcGIS readable format

2014-03-03 Thread Antonio Rodriges
Dear Community, What are the ways to export a raster R object to a format that ArcGIS will readily read? Can anyone suggest any code? Thank you ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] Problem installing rgdal on linux CentOS 6

2014-03-03 Thread Roger Bivand
On Mon, 3 Mar 2014, Gregory Duveiller wrote: Dear list, I am relatively new to linux and I am trying, unsuccesfully, to install 'rgdal' on a CentOS machine. When I type in R: $ install.packages('rgdal') When istalling a source package with system dependencies that you are unsure that you

[R-sig-Geo] writeRaster error [Error in dim.create.ncdf(nc, d, verbose) : NA/NaN/Inf in foreign function call (arg 5)]

2014-03-03 Thread Aseem Sharma
Hi, I am getting error(as below) when trying to write seasonal ( quarterly) data in netCDF. My data details and sample data are below. My code is library(raster) library(ncdf) writeRaster(ncdata.qtr, filename=QtrYTmax.nc,inf.rm=TRUE,na.rm=T,NaN.rm=T,format=CDF,overwrite=TRUE,verbose=T) but his

[R-sig-Geo] Speeding up raster calculations

2014-03-03 Thread Franz Grassmann
Dear list members! Maybe, someone has a good idea how to speed up my raster-calculation, or knows the right way how to deal with my „problem“. For my master thesis, I use the focal-function and its focalWeight („raster“-package) for some raster calculations. For every cell of my map, I sum up

Re: [R-sig-Geo] writeRaster error [Error in dim.create.ncdf(nc, d, verbose) : NA/NaN/Inf in foreign function call (arg 5)]

2014-03-03 Thread Robert J. Hijmans
Aseem provided me with some more info. writeRaster fails when the 'z-value' cannot be converted to an integer. In his case: head(getZ(ncdata.qtr)) [1] 1950 Q1 1950 Q2 1950 Q3 1950 Q4 1951 Q1 1951 Q2 The work around is to change these values using the setZ function. This has been fixed (with a

Re: [R-sig-Geo] Speeding up raster calculations

2014-03-03 Thread Jonathan Greenberg
Franz: I'm not sure what you mean that you can't use focal_hpc for your problem -- it seems like your problem would be fine for use with that function -- its a bit easier to use rasterEngine, by the way. You can use 1 input raster into your functions if you are using rasterEngine, and you can