Re: [R-sig-Geo] spatial distribution of two species and nest design

2014-02-21 Thread Lutfor
Thanks for your help and valuable suggestions. I am getting into ecespa package. But I think I still have starting hurdle with my data. When I draw my spatial data points it appear as diagonal with my spatial points and consequently when I do quadrats counts, some quadrats appear as 0 (specially

[R-sig-Geo] how to write a netCDF with irregular grid

2014-02-21 Thread Michael Nolde
Hello there, I've got a netCDF file which I want to read, modify, and save, which works well with 'ncdf4'-package. The problem is, that the grid representing the data (temperature values) is irregular, and I am not able to output an irregular grid. In the original file I have two variables

[R-sig-Geo] Problem with raster

2014-02-21 Thread Mark Payne
Hi, I am having a problem with the following code - I'm trying to create a raster from a SpatialGrid, but there seems to be something going wrong along the way - the problem pops up when I try to build two rasterlayers into a brick: halfrect.grd - GridTopology(c(-22.75,36.75), +

Re: [R-sig-Geo] Problem with raster

2014-02-21 Thread Robert J. Hijmans
Mark, You would not be tell from the error message, but the error occurs because you are using an invalid CRS. It should be: proj4string=CRS(+proj=longlat) instead of this: proj4string=CRS(longlat) Robert On Fri, Feb 21, 2014 at 6:59 AM, Mark Payne markpayneatw...@gmail.com wrote: Hi, I