Hello
Some images are returning cropped from Sentinel 2 API.
Here are some examples from 2022-08-10, KML file is attached.
Could you help me?
28a71bb3267184bafe53bb28ef65d94e.kml (2.7 KB)
Our code:
{
“input”: {
“bounds”: {
“properties”: {
“crs”: “http://www.opengis.net/def/crs/OGC/1.3/CRS84”
},
“geometry”: {
“type”: “Polygon”,
“coordinates”: [
[[-54.03679132462,-29.35832362421],[-54.03637290001,-29.36217613810],[-54.03687715530,-29.36336365548],[-54.03669476509,-29.36378442603],[-54.03641581535,-29.36406493876],[-54.03611540794,-29.36394338334],[-54.03582572937,-29.36432674995],[-54.03520345688,-29.36450440716],[-54.03455972672,-29.36504672724],[-54.03457045555,-29.36445765529],[-54.03480648994,-29.36379377646],[-54.03455972672,-29.36353196390],[-54.03460264206,-29.36282132642],[-54.03421640396,-29.36285872852],[-54.03429150581,-29.36363481892],[-54.03395891190,-29.36380312690],[-54.03418421745,-29.36422389563],[-54.03431296349,-29.36485037030],[-54.03404474258,-29.36532723650],[-54.03367996216,-29.36563579579],[-54.03348684311,-29.36557034390],[-54.03282165527,-29.36605655695],[-54.03217792511,-29.36613135875],[-54.03226375580,-29.36684197313],[-54.03137326241,-29.36715052783],[-54.03093338013,-29.36751518218],[-54.03057932854,-29.36755258255],[-54.03213500977,-29.36181146463],[-54.03381943703,-29.36197977563],[-54.03593301773,-29.35835167702],[-54.03679132462,-29.35832362421]]
]
}
},
“data”: [
{
“type”: “S2L1C”,
“dataFilter”: {
“timeRange”: {
“from”: “2022-08-01T00:00:00Z”,
“to”: “2022-09-01T00:00:00Z”
},
“maxCloudCoverage”: 3
}
}
]
},
“output”: {
“width”: 349,
“height”: 512,
“responses”: [
{
“identifier”: “image”,
“format”: {
“type”: “image/png”
}
},
{
“identifier”: “userdata”,
“format”: {
“type”: “application/json”
}
}
]
}
}',‘evalscript’ => '//VERSION=3
function setup() {
return {
input: ["B02", "B03", "B04"],
mosaicking: Mosaicking.ORBIT,
output: { id:"image", bands: 3}
}
}
function updateOutputMetadata(scenes, inputMetadata, outputMetadata) {
outputMetadata.userData = { "metadata": JSON.stringify(scenes) }
}
function evaluatePixel(samples) {
return [ 2.5*samples[0].B04, 2.5*samples[0].B03, 2.5*samples[0].B02 ]
}