Skip to content

Raster Package Aggregate new coordinates?

2 messages · Elizabeth Crisfield, Robert J. Hijmans

#
On Thu, Oct 14, 2010 at 8:11 PM, Elizabeth Crisfield <eac16 at psu.edu> wrote:
Correct, and the SE corner is adjusted, if necessary.
The Raster* objects do not use cell-center coordinates, but in arc you
are looking at a file, and what you are seeing could be a
file-format-specific matter. What format did you write to? This issue
does cause a lot of confusion, and it certainly possible that
something goes wrong in writing that file in raster (perhaps via
rgdal), or in Arc. Can you produce a reproducible example, perhaps
starting from the example in the aggregate help file?
Sounds like an invalid extent argument to crop. Likely the extend that
you want to use to crop does not at all overlap with the raster. If
they do you should be able to see that when doing plot(raster);
plot(extent, add=TRUE)

Cheers, Robert