Language | Created | Last update | Stars | Forks |
---|---|---|---|---|
R | 2014-09-01T07:25:16Z | 2014-09-02T12:23:40Z | 0 | 0 |
R interface to rLandsat8
!---[![DOI](https://zenodo.org/badge/3806/Terradue/rOpenSearch.png)](http://dx.doi.org/10.5281/zenodo.10642)--The rLandsat8 documentation is live at: http://terradue.github.io/rLandsat8
The rLandsat8 documentation source is available at: https://github.com/Terradue/rLandsat8/tree/master/src/main/doc
Inside R, use ?
?ReadLandsat8
The releases are available at: https://github.com/Terradue/rLandsat8/releases
Releases can be installed using devtools
Start an R session and run:
library(devtools)
install_url("https://github.com/Terradue/rLandsat8/releases/download/v0.1-SNAPSHOT/rLandsat8_0.1.0.tar.gz")
library(rLandsat8)
Note the example above install the v0.1-SNAPSHOT release, adapt it to the current release
The rLandsat8 package is built using maven.
From a terminal:
cd
git clone git@github.com:Terradue/rLandsat8.git
cd rLandsat8
mvn compile
That generates a compressed archive with the rOpenSearch package in:
~/rLandsat8/target/R/src/rLandsat8_x.y.z.tar.gz
To install the package, start an R session and run:
install.packages("~/rLandsat8/target/R/src/rLandsat8_x.y.z.tar.gz", repos=NULL, type="source")
Note x.y.z is the development version number.
Then load the library:
library(rLandsat8)
This example:
library(rLandsat8)
setwd("~/Downloads")
product <- "LC82040322013219LGN00"
l <- ReadLandsat8(product)
ndvi <- ToNDVI(l)
plot(ndvi)
Please file any bugs or questions as issues or send in a pull request.