[R-sig-Geo] How resolution works in raster packages?

Robert J. Hijmans r.hijmans at gmail.com
Tue Sep 21 18:28:37 CEST 2010


Alex, It depends. If you change the resolution directly, with "res",
you will loose the cell values because it affects the number of rows
and columns. This is not the case if you change it indirectly via
"extent" (because in that case the number of cells stays the same).
You can also use "aggregate" or "disaggregate" to change to resolution
and compute new cell values.  Robert

On Tue, Sep 21, 2010 at 5:44 AM, Alaios <alaios at yahoo.com> wrote:
> Hello everyone,
> I would like to ask you something concerning how resolution works in raster
> layers.
> Lets say that I have a raster layer of 100x100 cells. How resolution changes the
> way data are stored in this matrix?
> Could you please shed some light in this?
>
> I would like to thank you in advance for your help
> Best Regards
> Alex
>
>
>
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list