Re: [R-sig-Geo] Raster reprojection in R

2019-09-14 Thread Michael Sumner
Hi again, I checked the actual extent and it makes more sense now as it is a tiny region of the Aleutians. The problem in raster's heuristic is that part of your projected raster overlaps the anti-meridan, and so the extent-determiner unhelpfully expands to include the full extent of all longitudes

Re: [R-sig-Geo] Area calculation of forest cover classes.

2019-09-14 Thread Sarah Goslee
Hi Enoch, It's inappropriate to email just me, rather than the whole list - I don't have the capacity to provide private tutorials. You could import your prediction maps into a GIS you're more familiar with. You could read a tutorial on the raster package, which provides tools to do what you want

Re: [R-sig-Geo] Spatiotemporal autocorrelation in R

2019-09-14 Thread 李俊
Tks Roger for your patience and detailed instruction sincerely! -- Jun Li Business School of Anhui University of Technology At 2019-09-14 16:33:19, "Roger Bivand" wrote: >Please do not post HTML, choose plain text in your email client. > >Please include all links to previous postings

Re: [R-sig-Geo] Raster reprojection in R

2019-09-14 Thread Michael Sumner
You should set a target raster with the extent and dimensions required. There are inherent limits in reprojection and heuristics won't always work. Generally using a target raster is much more efficient anyway. But, this is an intensive remodeling of the data, delivered in a projection for good re

[R-sig-Geo] Raster reprojection in R

2019-09-14 Thread Víctor Rodríguez Galiano
Hello, I am trying to reproject a raster image from sinusoidal projection using “projectRaster”. The size of the image is not very big (922 KB), but when applying the reprojection I get this error message: “Error: cannot allocate vector of size 7.1 Gb”. Please see the code below: HDFpath <- "C:/

Re: [R-sig-Geo] Spatiotemporal autocorrelation in R

2019-09-14 Thread Roger Bivand
Please do not post HTML, choose plain text in your email client. Please include all links to previous postings you refer to in plain text, as HTML content is deleted. Checking HTML content for hostile payloads is a significant contributor to server-related energy use and thus emissions. I assu