- s2_prodlist
Named character: list of the products to be ordered,
in the format safelist
(see safelist).
Alternatively, it can be the path of a JSON file exported by a previous
execution of s2_order, in case the user wants, for any reason, to
resubmit the order.
- export_prodlist
Logical or character: if TRUE (default),
the list of ordered products is saved in a JSON text file, so to be easily
retrievable at a later stage with safe_is_online or s2_download;
if FALSE, no output files are generated.
It is also possible to pass the path of an existing folder in which the
JSON file will be saved (otherwise, a default path is used).
- delay
Numeric: time frame (in seconds) to leave between two
consecutive orders. Default is 0.5 seconds: use a higher value if you
encountered errors (i.e. not all the products were correctly ordered).
- apihub
Path of the apihub.txt
file containing credentials
of SciHub account.
If NA (default), the default location inside the package will be used.
- service
Character: it can be "dhus"
or "apihub"
, in which cases
the required service is forced instead that the one present in the URLs
passed through argument s2_prodlist
.
If NA (default), the service present in the URLs is maintained.
- reorder
Logical: If TRUE, and a json file exported by s2_order
is passed as argument to the function, try to order again also
the "available"
and "ordered"
S2 datasets.
Otherwise, only order the "notordered"
ones.