S2_buy_granule: Buy a granule at 'https://s2.boku.eodc.eu'

View source: R/S2_buy_granule.R

S2_buy_granuleR Documentation

Buy a granule at 'https://s2.boku.eodc.eu'

Description

Buy granule using granuleId

Usage

S2_buy_granule(granuleId, mode = c("ask", "always", "force"))

Arguments

granuleId

character vector of one or more granuleId's to buy

mode

one of 'ask', 'always' or 'force'. If 'ask', the user is prompted for confirmation before spending coins ( - in interactive sessions only!). If 'always', granules are bought without prompting but granule bought already are skipped. If 'force', granules are bought without prompting and also withoug checking if they are already bought.

Value

boolean logical vector indicating which granules were actually bought (note that if mode = 'force', there will be no FALSE values in the returned vector). If the underlaying HTTP request failed, the value is NA.


IVFL-BOKU/sentinel2 documentation built on May 13, 2022, 11:15 p.m.