View source: R/kissmigOrigin.R
| kissmigOrigin | R Documentation |
kissmigOrigin is a support function to define a rectangular origin for a kissmig call.
kissmigOrigin(grd, x, y, size)
grd |
SpatRaster with one layer as reference. |
x |
integer as lower left x-coordinate of geographic origin. |
y |
integer as lower left y-coordinate of geographic origin. |
size |
number as size of the quadratic origin. |
kissmigOrigin returns a SpatRaster with one layer characterized by the reference
grd. Cell values are set to 0, except for cells of the origin defined by
ext(x, x+size, y, y+size) which are set to 1.
kissmig
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.