Mosqlimate-project / Data-platform

Mosqlimate data Platform.
GNU General Public License v3.0
6 stars 6 forks source link

Climate variables aggregated by epiweek #197

Open claudia-codeco opened 4 months ago

claudia-codeco commented 4 months ago

It would be very useful for Infodengue to have tables with climate statistics already aggregated by epiweek and by municipality, health region or state.

Variables:

@fccoelho , could you help me to specify this issue?

fccoelho commented 4 months ago

@luabida I think you can just add a new endpoint /api//datastore/climate/weekly (or adding a weekly aggregation parameter to the existing endpoint) that points to a view that does the aggregation directly in the database (this is preferable to doing it on the Python side).

Since the weekly aggregation has to be by Epiweek, we should first add an epiweek column to the climate table