Statistical API inclusive months

Hello! I was wondering if there is a way to get daily statistics for a long time interval but only certain months? For example, I want to get statistics from 2020 - 2024 but only for May to September in each of those years. Currently I loop through each year and set the time interval individually. Therefore, I make 5 individual calls to the Statistical API, is there are way I could make this just one call? I do not want to get statistics for months I do not care about because it consumes a lot of PU.

Thanks for your help!

Hi,

Your current method of separate requests for the separate years is probably the best approach. Currently, there isn’t the option to input multiple time ranges into a single Sentinel Hub request.

There are some functions available within your evalscript on selecting time ranges which you could try. However, with a four year time range, a single request may time out depending on what you are calculating in your evalscript and the spatial resolution.

For simplicity I would loop through four smaller requests, rather than one very large request.

Hi William,

Thank you for your reply and suggestion. That is good to know that how I am currently doing it is likely the best.

Thanks,
Alissia