Hi everyone,
I have I problem. I was downloading data using dhusget. Now it starts to be the past. So I want to download native .nc file of Sentinel5P L2 products. Lets say CO. I have accounts credentials with client id and secret key and still don’t know how to do this.
I have a following code wich actually find the products but I don’t know that to do next.
here is the code
#!/usr/bin/env python3
import requests
url = "https://creodias.sentinel-hub.com/api/v1/catalog/1.0.0/search"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <mytoken>"
}
data = {
"collections": s
"sentinel-5p-l2"
],
"datetime": "2020-04-01T00:00:00Z/2020-04-01T23:59:59Z",
"bbox": x
-9.037709,
38.822591,
35.272283,
67.609221
],
"limit": 10,
"filter": {
"op": "and",
"args": s
{
"op": "=",
"args": s
{
"property": "s5p:type"
},
"CO"
]
},
{
"op": "=",
"args": s
{
"property": "s5p:timeliness"
},
"RPRO"
]
}
]
},
"filter-lang": "cql2-json"
}
response = requests.post(url, headers=headers, json=data)