Giter Site home page Giter Site logo

wtss's Introduction

R Client API for Web Time Series Service

wtss is an R client package for handling Web Time-Series Service (WTSS) in the client side. For more information on WTSS see its specification and documentation in the TWS site.

This R Client API is based on the orginal version developed by Alber Sanchez at https://github.com/albhasan/rwtss.

Getting started

Installing and loading wtss package

devtools::install_github("e-sensing/wtss") # github repository name is wtss.R
library(wtss) # R package name is wtss

A simple example of creating a WTSS connection

ts.server <- WTSS("http://www.dpi.inpe.br/tws/wtss")

The result is a Object of Class WTSS.

ts.server
## Object of Class WTSS

## serverUrl:  http://www.dpi.inpe.br/tws/wtss 
## listCoverages: itobi merge mixl8mod mixl8mod_f mod13q1_512

It is possible to get the list of coverages provided by the service.

coverages <- listCoverages(ts.server)

The object is a vector containing all the coverages provided by the service.

coverages
## [1] "itobi"       "merge"     "mixl8mod"     "mixl8mod_f"     "mod13q1_512"

After that, we are able to acquire the coverage metadata. This function returns a named list of the coverage containing its attributes. In the example below, we can see how to get metadata from the second coverage.

coverage.name <- "mod13q1_512"
cv <- describeCoverage(ts.server, coverage.name)

Finally, users can get the time series based on a set of required parameters.

attributes <- cv[[names(cv)]]$attributes$name

long <- -53.495
lat <- -10.408

start <- "2000-02-18"
end <- "2017-02-18"
  
ts = timeSeries(object = ts.server, 
                coverages = coverage.name, 
                attributes = attributes, 
                latitude = lat, 
                longitude = long, 
                start = start, 
                end = end)

Plot the time series

plot(ts[[1]]$attributes[,1], main=sprintf("Pixel Center Coordinates Time-Series (%5.3f, %5.3f)", ts[[1]]$center_coordinate$latitude, ts[[1]]$center_coordinate$longitude), xlab="Time", ylab="Normalized Difference Vegetation Index")

Figure 1 - Vegetation index (ts time series).

Figure 1 - Vegetation index (ts time series).

References

G. R. de Queiroz, K. R. Ferreira, L. Vinhas, G. Camara, R. W. da Costa, R. C. M. de Souza, V. W. Maus, and A. Sanchez. WTSS: um serviço web para extração de séries temporais de imagens de sensoriamento remoto. In Proceeding of the XVII Remote Sensing Brazilian Symposium, pages 7553-7560, 2015.

Reporting Bugs

Any problem should be reported to [email protected].

wtss's People

Contributors

gqueiroz avatar gilberto-queiroz avatar gilbertocamara avatar

Watchers

Luiz Fernando Ferreira Gomes de Assis 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.