TheiaQuery: A query to the Theia website

Description Usage Arguments Details Queries See Also Examples

Description

Generate an send a query to Theia web API to get and download tiles based on input given by the user.

Usage

1
2
3
4
   q <- TheiaQuery$new(query)

   q$update_token()
   q$submit()

Arguments

q:

A TheiaQuery object

query:

list, the users' request, see 'Queries' for more informations

Details

TheiaQuery$new() Create a new instance of the class, parse 'query' list and submit the query to Theia to retrieve files catalog

q$submit() Submit the query to Theia and get a list of tiles corresponding to search criteria

Queries

Search criteria are given with a 'list' accepting these fields:

See Also

https://github.com/olivierhagolle/theia_download for an alternative download method based on Python. Inspiration for this function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Create a query to Theia database, looking for tiles from Sentinel2
# satellite around Grenoble, between 2018-07-01 and 2018-07-06.

query <- list(collection = "SENTINEL2",
              town       = "Grenoble",
              start.date = "2018-07-01",
              end.date   = "2018-07-06")
q <- TheiaQuery$new(query)

# Show informations on found tiles
print(q$tiles)

theiaR documentation built on Nov. 19, 2020, 5:08 p.m.