Retrieve Custom JavaScripts to be Used by Sentinel Hub
Source:R/sentinelhub.R
dse_sh_get_custom_script.RdSentinel Hub uses JavaScripts to process satellite images.
There is a repository with such custom scripts. They can be
listed with dse_sh_custom_scripts(). Use the relative URL
(relUrl) from that list to obtain the actual script with this
function.
Arguments
- rel_url
A relative URL found with
dse_sh_custom_scripts().
Value
A character string containing JavaScript code. This
script can be used with dse_sh_process()
Examples
if (interactive()) {
dse_sh_get_custom_script("/sentinel-2/tonemapped_natural_color/")
}