Skip to contents

Sentinel 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.

Usage

dse_sh_get_custom_script(rel_url)

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/")
}