geobeyond / Arpav-PPCV-backend

Backend di Piattaforma Proiezioni Climatiche per il Nord-Est.
Creative Commons Attribution 4.0 International
0 stars 1 forks source link

allow download of model data #150

Open ricardogsilva opened 4 weeks ago

ricardogsilva commented 4 weeks ago

From the requirements:

Improve the mode of downloading time series on point and map (Download data). Give the ability to change fields without going back to the map. Allow to change the fields "Indicator", "Model and scenario", "Period" without the need to go back to the map. Implement a massive download of data, allowing the ability to download multiple fields, i.e. multiple Netcdfs, at the same time.

Note that, in spite of the dynamic download requests, we likely need to have some limit in place (and potentially some caching strategy) to avoid having the user making very large data download requests and risk degrading performance of the system.

ricardogsilva commented 3 weeks ago

My initial plan was to gather all the requested inputs, ask THREDDS NCSS for the relevant data (which would potentially imply doing a temporal and spatial subset) and then collect the generated results into a zip file which would get returned to the user. However, upon further thinking about this, it does not seem like such a good idea.

Packing the files inside a zip would introduce some issues:

We should instead strive for having:


I think a better strategy for the design of model data downloads is: