Classes
Type Definitions
-
AccessTokenClaims{Object}
-
Properties:
Name Type Description expnumber The expiration time of the token (in seconds).
-
AuthConfig{Object}
-
Properties:
Name Type Description tokenUrlstring
(defaults to 'https://services.sentinel-hub.com/auth/realms/main/protocol/openid-connect/token')The URL to get the authentication token.
clientIdstring The client ID.
clientSecretstring The client secret.
-
Collections{Object}
-
Properties:
Name Type Description fromstring | undefined For 'ORBIT' mosaicking, this will be the start of the search interval.
tostring | undefined For 'ORBIT' mosaicking, this will be the end of the search interval.
scenesScenes The scenes in the collection.
-
CustomData{Object.<string, unknown>}
-
-
DataFilter{Object}
-
Properties:
Name Type Description timeRangeTimeRange | undefined The data time range.
maxCloudCoveragenumber | undefined The maximum cloud coverage (0-100).
-
Evalscript{Object}
-
Properties:
Name Type Description setupSetup The setup function.
evaluatePixelEvaluatePixel The function to transform input samples into output values.
updateOutputUpdateOutput | undefined Optional function to adjust the output bands.
updateOutputMetadataUpdateOutputMetadata | undefined Optional function to update the output metadata.
preProcessScenesCollections | undefined Optional function called before processing.
versionstring
(defaults to '3')The Evalscript version.
-
-
InputDescription{Object}
-
Properties:
Name Type Description bandsArray.<string> Input band identifiers.
unitsstring | Array.<string> | undefined Input band units.
metadataArray.<string> | undefined Properties to include in the input metadata.
-
InputMetadata{Object}
-
Properties:
Name Type Description serviceVersionstring The version of the service used for processing.
normalizationFactornumber The factor used to convert digital number (DN) values to reflectance.
-
Options{Object}
-
Properties:
Name Type Description authAuthConfig | string | undefined The authentication configuration with
clientIdandclientSecretor an access token. See Sentinel Hub authentication for details. If not provided in the constructor, the source will not be rendered untilsetAuthis called.dataArray<ProcessRequestInputDataItem> | undefined The input data configuration. If not provided in the constructor, the source will not be rendered until
setDatais called.evalscriptEvalscript | string | undefined The process applied to the input data. If not provided in the constructor, the source will not be rendered until
setEvalscriptis called. See thesetEvalscriptdocumentation for details on the restrictions when passing process functions.tileSizenumber | Size
(defaults to [512, 512])The pixel width and height of the source tiles.
urlstring
(defaults to 'https://services.sentinel-hub.com/api/v1/process')The Sentinel Hub Processing API URL.
projectionProjectionLike | undefined Projection. Default is the view projection.
attributionsCollapsibleboolean
(defaults to true)Allow the attributions to be collapsed.
interpolateboolean
(defaults to true)Use interpolated values when resampling. By default, linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
wrapXboolean
(defaults to true)Wrap the world horizontally.
transitionnumber | undefined Duration of the opacity transition for rendering. To disable the opacity transition, pass
transition: 0. -
Orbit{Object}
-
Properties:
Name Type Description dateFromstring The earliest date for all scenes included in the tile.
dateTostring The latest date for scenes included in the tile.
tilesArray Metadata for each tile.
-
OutputDescription{Object}
-
Properties:
Name Type Description idstring
(defaults to 'default')Output identifier.
bandsnumber Number of output bands.
sampleTypeSampleType
(defaults to 'AUTO')Output sample type.
nodataValuenumber | undefined Output nodata value.
-
OutputMetadata{Object}
-
Properties:
Name Type Description userDataObject Arbitrary user data.
-
OutputValues{Object.<string, Array.<number>>}
-
-
ProcessRequest{Object}
-
Properties:
Name Type Description inputProcessRequestInput Input data configuration.
evalscriptstring The Evalscript used for processing.
outputProcessRequestOutput | undefined The output configuration.
-
ProcessRequestInput{Object}
-
Properties:
Name Type Description boundsProcessRequestInputBounds The bounding box of the input data.
dataArray<ProcessRequestInputDataItem> The intput data.
-
ProcessRequestInputBounds{Object}
-
Properties:
Name Type Description bboxArray.<number> | undefined The bounding box of the input data.
propertiesProcessRequestInputBoundsProperties | undefined The properties of the bounding box.
geometrymodule:geojson~Geometry | undefined The geometry of the bounding box.
-
ProcessRequestInputBoundsProperties{Object}
-
Properties:
Name Type Description crsstring The coordinate reference system of the bounding box.
-
ProcessRequestInputDataItem{Object}
-
Properties:
Name Type Description typestring | undefined The type of the input data.
idstring | undefined The identifier of the input data.
dataFilterDataFilter | undefined The filter to apply to the input data.
processingObject.<string, unknown> | undefined The processing to apply to the input data.
-
ProcessRequestOutput{Object}
-
Properties:
Name Type Description widthnumber | undefined Image width in pixels.
heightnumber | undefined Image height in pixels.
resxnumber | undefined Spatial resolution in the x direction.
resynumber | undefined Spatial resolution in the y direction.
responsesArray<ProcessRequestOutputResponse> | undefined Response configuration.
-
ProcessRequestOutputFormat{Object}
-
Properties:
Name Type Description typestring | undefined The output format type.
-
ProcessRequestOutputResponse{Object}
-
Properties:
Name Type Description identifierstring | undefined Identifier used to connect results to outputs from the setup.
formatProcessRequestOutputFormat | undefined Response format.
-
Sample{Object.<string, number>}
-
-
SampleType{'INT8'} {'UINT8'} {'INT16'} {'UINT16'} {'FLOAT32'} {'AUTO'}
-
-
Scenes{Object}
-
-
SetupResult{Object}
-
Properties:
Name Type Description inputArray.<string> | Array<InputDescription> Description of the input data.
outputOutputDescription | Array<OutputDescription> Description of the output data.
mosaicking'SIMPLE' | 'ORBIT' | 'TILE'
(defaults to 'SIMPLE')Control how samples from input scenes are composed.
-
Tile{Object}
-
Properties:
Name Type Description datestring The date of scene used in the tile.
cloudCoveragenumber The estimated percentage of pixels obscured by clouds in the scene.
dataPathstring The path to the data in storage.
shIdnumber The internal identifier for the scene.
-
TimeRange{Object}
-
Properties:
Name Type Description fromstring | undefined The start time (inclusive).
tostring | undefined The end time (inclusive).
-
-
-
UpdatedOutputDescription{Object}
-
Properties:
Name Type Description bandsnumber Number of output bands.