Giter VIP home page Giter VIP logo

rlandsat8's Introduction

rLandsat8

R interface to rLandsat8

Documentation

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 ? to view the function's help page. Example:

?ReadLandsat8

Citing this package

Installing a release

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

Building and installing the development version

The rLandsat8 package is built using maven.

From a terminal:

cd
git clone [email protected]: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)

Getting Started

Calculate the Normalized Difference Vegetation Index

This example:

  • Reads a previously downloaded Landsat 8
  • Calculates the Normalized Difference Vegetation Index (NDVI) by converting the NIR and Red bands to TOA reflectances and applying the normalized difference: NDVI=(ρNIR −ρRed)/(ρNIR +ρRed)
library(rLandsat8)

setwd("~/Downloads")
product  <- "LC82040322013219LGN00"
l <- ReadLandsat8(product)

ndvi <- ToNDVI(l)
plot(ndvi)

Questions, bugs, and suggestions

Please file any bugs or questions as issues or send in a pull request.

rlandsat8's People

Contributors

fabricebrito avatar

Watchers

James Cloos avatar Bang TRAN avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.