Skip to content

creat raster from XYZ

1 message · Michael Sumner

#
On Fri, Jun 28, 2013 at 1:41 AM, Shane Carey <careyshan at gmail.com> wrote:
The function is reporting that your data don't fall on a grid, you'll
need to figure out why that is the case, or if it is not the case why
you think it should be (plotting the points is a good start).
rasterFromXYZ has some arguments for controlling the tolerance of
numeric error for the grid interpretation (tables or coordinates
stored in text are a bad way to store such data, since you can
introduce innacuracies in the coordinate values and the vast majority
of them are redudant if it's really a grid).

The function's help also points you to rasterize() which is for
converting irregular data to a grid, but this is a very broad and
complicated modelling topic, depending on your domain. I would trace
the origins of your file back to where it's supposed to be a real grid
and demand a decent raster format that is efficient and unambiguous
before exploring that.

R-Sig-Geo is a mailing list more suited to this topic, and is where
the geo-geeks hang out. You should review the guidelines for that
mailing list (and this one).

Cheers, Mike.