Skip to main content

I understand OAuth2 and request sample of process API coming after OAuth2 as below. My question is how and where I could find imagery view or files when the python script has done. Hope that I could use them for my software, but no downloading path available to describe into the code and no imagery viewer opened.



import requests


response = requests.post(‘https://services.sentinel-hub.com/api/v1/process’,

headers={“Authorization” : “Bearer <your_access_token>”},

json={

“input”: {

“bounds”: {

“bbox”: b

13.822174072265625,

45.85080395917834,

14.55963134765625,

46.29191774991382

]

},

“data”: {

“type”: “S2L2A”

}]

},

“evalscript”: “”"

//VERSION=3


function setup() {
return {
input: s"B02", "B03", "B04"],
output: {
bands: 3
}
};
}

function evaluatePixel(
sample,
scenes,
inputMetadata,
customData,
outputMetadata
) {
return >2.5 * sample.B04, 2.5 * sample.B03, 2.5 * sample.B02];
}
"""

})

Hi @h-ohno,


I recommend checking out sentinelhub-py package and Processing API examples with sentinelhub-py. This package already implements exactly what you are trying to do.


Reply