product_download: Download THEAI or PEPS products.

Description Usage Arguments Note Author(s) Examples

View source: R/product_download.R

Description

The function downloads product. (the content must be a URL, and the name the product name).

Usage

1
2
3
4
product_download(spatial_extent = NULL, tile = NULL, orbit = NULL,
  time_interval = NULL, time_period = "full", level = "L2A",
  platform = "SENTINEL2A", maxcloud = 101, collection = "SENTINEL",
  api = NA, writedir = ".")

Arguments

spatial_extent

Spatiam extent

tile

Tile

orbit

Orbit

time_interval

Time interval

time_period

Time period

level

Level

platform

Platform

maxcloud

Max cloud cover

collection

Collection

api

Path of the 'api.txt' file containing credentials of cnes account. If NA (default) the default credentials

writedir

Write dir (username 'user', password 'user') will be used.

Note

License: GPL 3.0

Author(s)

Pascal Obstetar, (2019) pascal.obstetar@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Download the whole product
product_download(prodlist, outdir = tempdir())

# Download a serie of products
pos <- st_sfc(st_point(c(12.0, 44.8)), crs = st_crs(4326))
time_window <- as.Date(c("2017-05-01", "2017-07-30"))
example_theia_list <- s2_list(spatial_extent = pos, time_interval = time_window)
product_download(example_theia_list, outdir = tempdir())

## End(Not run)

pobsteta/shiny-cnes documentation built on May 26, 2019, 2:31 a.m.