[R-sig-Geo] problems with read.geoda

2013-02-11 Thread Tanja Zinßer
Hey everyone, I'm trying to create a data frame using read.geoda and a csv. document I get an result, but the names of my columns are missing, instead I get som randomly chosen names for the columnes. When I use read.csv everything is working as it should. Regards Tanja [[alternative

Re: [R-sig-Geo] problems with read.geoda

2013-02-11 Thread Roger Bivand
Please do not post HTML - I explained yesterday how to avoid this nuisance. Just use read.csv() or read.csv2() - read.geoda is only a wrapper, so if your CSV uses ; instead of , failure will follow for obvious reasons. Open the CSV in a text editor to see what it actually looks like, or say

Re: [R-sig-Geo] GRTS-sampling

2013-02-11 Thread ONKELINX, Thierry
Hi Dick, Can you send us your script? Best regards, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie Kwaliteitszorg / team Biometrics Quality Assurance Kliniekstraat 25 1070 Anderlecht Belgium + 32 2 525 02 51 + 32

[R-sig-Geo] Error ENFA: Error in eigen(Se) : infinite or missing values in 'x'

2013-02-11 Thread Leandro Abade
Dear all, I am trying to run an ENFA using ADE package though I am stuck in this error, and I do not understand what could be the problem. Error in eigen(Se) : infinite or missing values in 'x' I get the error message after the following step: dataenfa1 - data2enfa(var,locs) (enfa1 -

[R-sig-Geo] apply function to lists of rasters

2013-02-11 Thread Lorenzo Alfieri
Dear list, I'm trying to apply a function to lists of rasters, but without success. I'm not sure if it feasible of if I should use a for loop. Let's say a, b and c are three lists of argument to my function 1/(1-exp(-exp(-((a - b)/c (2 rasters each) I'd like this function to be applied to

Re: [R-sig-Geo] apply function to lists of rasters

2013-02-11 Thread Roman Luštrik
There may be a problem. mapply(function(a, b, c) exp(a), A, B, C) alas exp(A[[1]]) class : RasterLayer dimensions : 2, 2, 4 (nrow, ncol, ncell) resolution : 0.5, 0.5 (x, y) extent : 0, 1, 0, 1 (xmin, xmax, ymin, ymax) coord. ref. : NA data source : in memory names

[R-sig-Geo] GRTS sampling

2013-02-11 Thread Dick Brus
I try to understand the hierarchical randomization as applied in the GRTS design. I randomized 16 points on a square grid, see R script below. The argument do.sample was set to FALSE, so that the result consists of a dataframe of all 16 points instead of a GRTS sample. When plotting the order

Re: [R-sig-Geo] apply function to lists of rasters

2013-02-11 Thread Robert J. Hijmans
mapply does indeed not seem to work here, further illustrated below. I do not know why. However, in this case I think it is simpler not to use mapply (see example at the very end). library(raster) Loading required package: sp raster 2.1-3 (1-February-2013) aa-matrix(c(2,1,3,4),nrow=2,ncol=2)

Re: [R-sig-Geo] [raster] problem with large netCDF file

2013-02-11 Thread Tom Roche
Tom Roche Sun, 10 Feb 2013 14:40:05 -0500 $ ls -alh ./METCRO3D_080101 -r--r--r-- 1 me mygroup 5.3G Jan 8 11:32 ./METCRO3D_080101 # extension used below $ ln -s ./METCRO3D_080101 ./METCRO3D_080101.nc ... raster('./METCRO3D_080101.nc', varname='ZF') ... Error in .local(.Object, ...) :

Re: [R-sig-Geo] [raster] problem with large netCDF file

2013-02-11 Thread Robert J. Hijmans
On Mon, Feb 11, 2013 at 9:31 AM, Tom Roche tom_ro...@pobox.com wrote: Tom Roche Sun, 10 Feb 2013 14:40:05 -0500 $ ls -alh ./METCRO3D_080101 -r--r--r-- 1 me mygroup 5.3G Jan 8 11:32 ./METCRO3D_080101 # extension used below $ ln -s ./METCRO3D_080101 ./METCRO3D_080101.nc ...

Re: [R-sig-Geo] 64-bit ncdf4 for Windows??

2013-02-11 Thread Tom Philippi
All-- Does anyone know if the update from R 2.15.2 to 3.0 is likely to change they way these binaries would need to be built? I don't think that the NAMESPACE .First.lib changes will matter, but I don't understand the implications of long.vectors. http://developer.r-project.org/30update.txt

Re: [R-sig-Geo] 64-bit ncdf4 for Windows??

2013-02-11 Thread Roger Bivand
On Mon, 11 Feb 2013, Tom Philippi wrote: All-- Does anyone know if the update from R 2.15.2 to 3.0 is likely to change they way these binaries would need to be built? I don't think that the NAMESPACE .First.lib changes will matter, but I don't understand the implications of long.vectors.

[R-sig-Geo] Spatial points to lines/polygons

2013-02-11 Thread Gustaf Granath
Hi, I have mapped structures with a GPS (walked along their edges) and Im now trying to make polygons from my coordinates. The GPS data are a bit fuzzy and I want to establish the edge of the structure with a smoother or similar. However, I have not been able to find an easy way to do this in

[R-sig-Geo] float points

2013-02-11 Thread Jianhua Huang
Hi all: I am using the precipitation (pr) data from rcm3-cgcm3 model. I used the ncdf4 package to open the precipitation data. Some values are very close to zero, for example 3*10^(-23), and there are even some negative values (like -3*10^(-21)). Should I treat these values as zero? I don't

Re: [R-sig-Geo] spatstat kstest

2013-02-11 Thread Hiroshi Saito
Dear Adrian and Rolf, Thank you for your comments. I am considering your comments to understand them. I will send such questions to the package authors. Regards, Hiroshi Saito On Mon, 11 Feb 2013 13:56:42 +0800 adrian.badde...@csiro.au wrote: On 02/08/2013 01:48 PM, Hiroshi Saito wrote:

[R-sig-Geo] question on the difference between spdep function spautolm() and glm() with autocovariate

2013-02-11 Thread Li, Han
Dear list, I am currently working on spatial autoregression modeling for my dissertation research. I want to use regression models to identify socioeconomic/landscape variables (15 total, var1$bat_survey - var15$bay_survey) that can affect the presence/absence of bats (p/a$bat_survey). Since

[R-sig-Geo] Alternative to zonal for large images

2013-02-11 Thread Ned Horning
Hi - Are there alternatives to using the raster package zonal function for large images when using functions for the stat parameter? The canned functions like 'mean' work well but I would like to write my own functions to calculate standard deviation and other statistics. I tried extract

Re: [R-sig-Geo] Alternative to zonal for large images

2013-02-11 Thread Forrest Stevens
On Mon, Feb 11, 2013 at 10:44 PM, Ned Horning horn...@amnh.org wrote: Hi - Are there alternatives to using the raster package zonal function for large images when using functions for the stat parameter? I would be interested to know as well. I have found both extract and zonal to be

Re: [R-sig-Geo] question on the difference between spdep function spautolm() and glm() with autocovariate

2013-02-11 Thread Roger Bivand
On Tue, 12 Feb 2013, Li, Han wrote: Dear list, I am currently working on spatial autoregression modeling for my dissertation research. I want to use regression models to identify socioeconomic/landscape variables (15 total, var1$bat_survey - var15$bay_survey) that can affect the