Description Usage Arguments Details Value Author(s) Examples

Get cell number(s) of a Raster*TS object from row and column numbers or X and Y coordinates.

1 2 | ```
cellFromXY(object, xy)
cellFromRowCol(object, rownr, colnr)
``` |

`object` |
a raster time series ( |

`colnr` |
column number; or vector of column numbers |

`rownr` |
row number; or vector of row numbers |

`xy` |
matrix of x and y coordinates, or a SpatialPoints or SpatialPointsDataFrame object |

These functions are essentially a wrapper to `cellFromRowCol`

and `cellFromXY`

in raster package, work with `Raster*TS`

objects.

row, column or cell number(s). cellFromLine and cellFromPolygon return a list.

Babak Naimi [email protected] http://r-gis.net

1 2 3 4 5 6 7 8 9 10 11 | ```
## Not run:
file <- system.file("external/ndvi", package="rts")
rt <- rts(file) # read the ndvi time series from the specified file
cellFromRowCol(rt,15,20)
cellFromRowCol(rt,c(16:20),c(11:15))
cellFromXY(rt,c(645000,57345000))
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.