Skip to content

raster package, values pixel order

3 messages · Roman Luštrik, Oliver Soong

#
Can somebody confirm whether raster::values(x, format = "") always
starts in the top-left of the image and moves left-to-right then
top-to-bottom?

I'm really hoping it doesn't depend on the pixel order of the underlying raster.

Thanks,
Oliver
#
Ah, thanks for pointing out the definition of cell order.  The
documentation for raster::values doesn't specify that
values(rasterLayer, format = "") always returns values in cell order,
nor does it state that values(rasterStack) or values (rasterBrick)
returns rows in cell order, so I wanted to check.

Oliver
On Tue, Feb 7, 2012 at 3:57 PM, Roman Lu?trik <roman.lustrik at gmail.com> wrote: