README.md

rwtss

R client for Web Time Series Service (WTSS).

NOTE:

This project is now part of the e-sensing project and it's been re-named as wtss.R; please go there to obtain the latest releases and updates. The code in the page is no longer updated or modified, however, it is keep for legacy applications.

rwtss

WTSS is a lightweight web service for handling remote sensing imagery as time series. Through a simple and effective representation for time series, this web service can be easily integrated into free and open source tools such as R, Python and web browser (through JavaScript).

A JavaScript client can be found at http://github.com/gqueiroz/wtss

Prerequisites:

To use the package:

  1. Open RStudio
  2. Install devtools install.packages("devtools")
  3. Load devtools library(devtools)
  4. Install the rwtss package install_github("albhasan/rwtss")

Usage examples:

  1. Load the rwtss package library(rwtss)
  2. Create a connection obj = wtssClient("http://www.dpi.inpe.br/mds/mds")
  3. Get the list of products provided by the service objlist = listCoverages(obj)
  4. Get the description of an specific product objdesc = describeCoverages(obj,"MOD09Q1")
  5. Get a time series ts1 = getTimeSeries(obj, coverages="MOD09Q1", datasets=c("nir","quality","red","evi2"), latitude=-12, longitude=-45, from="2004-01-01", to="2004-05-01")

To build the package:

  1. Clone the project: git clone https//github.com/albhasan/rwtss.git.
  2. Open Rstudio, go to File - Open Project and pick the file rwtss.Rproj.
  3. Install the required packages install.packages(c("roxygen2", "testthat")).
  4. Go to the Build tab in the upper-right panel and press the button Build & Reload. After this the package is ready to use.
  5. You can also create a source package: Go to the Build tab, display the menu More and select the option Build Source Package.


albhasan/rwtss documentation built on May 11, 2019, 10:31 p.m.