S2_naming | R Documentation |
Creates a filename to store a downloaded 'granule', based on query response for a single 'granuleId'
S2_naming(x, order = list("date", "utm", "orbit", Id = "granuleId"), prefix = "GRANULE", suffix = ifelse(as.numeric(x$atmCorr) == 0, "L1C", "L2A"), extension = NULL)
x |
is the returned data |
order |
character vector representing the desired naming order. Allowed values are '"date", "utm", "orbit", "granuleId", "productId", "cloudCov", "atmCorr", "resolution", "band"'. If an element in 'order' is named, the name of the element is used as prefix for its value (without any separator). (The 'time' portion of 'date' will be truncated to avoid spaces and colons in the filename.) |
prefix |
character 'GRANULE' by default |
suffix |
character by default turns to 'L1C', if ' |
extension |
character optional filename extension |
This function allows to alter the automatic naming behavior for downloaded granules. Useful, when it is desired to add a custom prefix / suffix or make files be easier sortable by utm zone Id instead of acquision date.
character name
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.