Investigate enabling date range queries for the /timelapse
endpoint
#127
Labels
enhancement
New feature or request
/timelapse
endpoint
#127
This issue builds off of PR #113
The
/timelapse
endpoint returns zonal stats for a single time unit (month or day), which can be cumbersome for API consumers (eg: 2 year timelapse of a monthly dataset requires 24 API queries).While it's very straightforward to implement a
date_range
parameter in the query which causes the API to return an array of zonal stats. ie:NOTE: calculating zonal stats requires loading the COG into memory. For a big enough AOI this calculation can already be quite time consuming, repeating this calculation in a loop for a large time range (eg: daily dataset for 2 years is over 700 zonal_stats calculations) might break things, or at best be very slow.
TODO:
The text was updated successfully, but these errors were encountered: