Create evalscript access: .
This screen let users run custom script to download geotiff files from Copernicus Sentinel HUB.
An evalscript (or "custom script") is a piece of Javascript code which defines how the satellite data shall be processed by Sentinel Hub and what values the service shall return.
It does exist a public repository for Sentinel Hub Custom Script
where there are multiple examples created by researchers, that can be executed on WALGREEN.
Once field title, description and custom script are introduced, the first thing to do is saving by pushing save button.
This action makes it possible to launch custom script later on using many different parameters as shown in picture bellow.
Parameters details are:
- Title:Title
- Description:Description
- Collection: User can download from 2 missions , Sentinel 1 (s2l1c) or Sentinel 2 (s2l2a)
- Initial Date:Initial date, format YYYY-MM-DD
- End date:End date, format YYYY-MM-DD
- Offset: Offet used to set the size on the area of interest.
- Maxcloud coverage: Max cloud coverage for sentinel tiff images
- Resolution: Define image resolution
- Custom evalscript: Evalscript to run
- Polygon: Coordinates format is lat<space>long,lat<space>long,,,,,,,,,lat<space>long
This parameters are need to call
sentinelhub.api.process ,
and inform parameters:
evalscript (str) – Evalscript.
input_data (list[JsonDict | InputDataDict]) – A list of input dictionary objects as described in the API reference. It can be generated
with the helper method SentinelHubRequest.input_data
responses (list[JsonDict]) – A list of output.responses objects as described in the API reference. It can be generated
with the helper function SentinelHubRequest.output_response
bbox (BBox | None) – Bounding box describing the area of interest.
geometry (Geometry | None) – Geometry describing the area of interest.
size (tuple[int, int] | None) – Size of the image.
resolution (tuple[float, float] | None) – Resolution of the image. It has to be in units compatible with the given CRS.
data_folder – location of the directory where the fetched data will be saved.
config – A custom instance of config class to override parameters from the saved configuration.
kwargs (Any) –
In case query does not find results next screen will be shown:
In case query find results it will be shown a message asking user to push "Show till file" button to view geotiff.