Hi,
I require sun elevation angle in my python script on a daily basis.
But sun elevation angle is not available on a daily basis. Sentinel 3 provides sun zenith angle on a daily basis in the form of a band as mentioned here in this link in the available bands section.
There is a direct complimentary angles relation between sun elevation angle and sun zenith angle.
I am unable to download the sun zenith angle band as I cannot find the evalscript for it.
Can you help in setting up the sun zenith angle layer on sentinelhub as this is very important for us and a priority.
Thank you
Sidharrth
Hi Sidharrth,
This curl request shows you how to download the SAA and SZA bands:
curl -X POST https://creodias.sentinel-hub.com/api/v1/process \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: Bearer <access_token>' \
--form-string 'request={
"input": {
"bounds": {
"bbox": [
12.44693,
41.870072,
12.541001,
41.917096
]
},
"data": [
{
"dataFilter": {
"timeRange": {
"from": "2024-02-22T00:00:00Z",
"to": "2024-03-22T23:59:59Z"
}
},
"type": "sentinel-3-olci"
}
]
},
"output": {
"width": 512,
"height": 343.697,
"responses": [
{
"identifier": "default",
"format": {
"type": "image/tiff"
}
}
]
}
}' \
--form-string 'evalscript=//VERSION=3
function setup() {
return {
input: [{
bands: [
"SAA",
"SZA",
"dataMask"
]
}],
output: {
bands: 3,
sampleType: "UINT16"
}
}
}
function evaluatePixel(samples) {
return [samples.SAA, samples.SZA, samples.dataMask]
}
'
Hi @william.ray
Is there a way to find out the time when this zenith angle data from sentinel 3 olci has come. ]
Thanks
Sidharrth
Hi,
You can copy and paste the request I shared into Request Builder and convert it this way. This will give you a chance to update the input parameters too.