enram / data-repository

Data quality assessment
https://enram.github.io/data-repository/
MIT License
3 stars 1 forks source link

Offer a webservice for aggregated data #10

Closed peterdesmet closed 7 years ago

peterdesmet commented 8 years ago

Do we really need to build this? And if so, how do we keep it simple?

Same as for #6, only needed for visualizations, giving access to the aggregated data product via a REST API.

REST API

The flow visualization can ideally request per time interval and altitude bin:

Request: http://lifewatch.eu/enram/api/v1/flow-viz?datetime=2016-02-18T19:15&altitude_bin=1

Response:

{
6451: {
   avg_u_speed: -1.09273,
   avg_v_speed: -0.80584,
   avg_bird_density: 0.26336,
   vertical_integrated_density: 0.36870
},
6260: {
   ...
}
peterdesmet commented 7 years ago

Since the data is currently so spotty, it does not make a lot of sense to create an aggregated data file for e.g. the bird migration flow visualization at this point. Once data coverage is better & we've solved some of the memory issues with the bird viz, a useful approach might be to generate the aggregate data file with bioRad, as an extra functionality.

But for the moment, I'll close this issue until there is enough interest to pick it up.