SentinelHubStatistical -aggregation_interval options


I’m trying to use the statistical API requesst and I have question which I didn’t find answer in the documentaion . I wanted to know which values can be inserted in the “aggregation_interval” parameter, I am now using P1D which seems to aggregate by month, but don’t find which string should I use to get the daily average.

aggregation = SentinelHubStatistical.aggregation(
    resolution=(10, 10)

input_data = SentinelHubStatistical.input_data(

P1D aggregates on daily basis. You can see that in your results, where the interval looks something like

'interval': {'from': '2020-01-14T00:00:00Z', 'to': '2020-01-15T00:00:00Z'}

The aggregation_interval is the duration in ISO 8601 duration format, check here for more details.

1 Like