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

Closed ricardogsilva closed 2 months ago

ricardogsilva commented 5 months 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 5 months 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:

ricardogsilva commented 3 months ago

In the below mock-up we keep some configuration parameters in dynamic HTML controls, allowing the user to modify them without having to navigate away from the download section. Other parameters are not selectable and we include a list of possible download links and let the user select which they want.

This seems to provide a nice balance of presenting a list with quick access to downloads and not make it excessively big (in order to not disorientate the user).

We just need to select which parameters are more important to be set by the user and which ones can be shown in the links. geospatial extent and temporal extent will always need to be dynamically set by the user, but in addition we may put (as in the mock-up below):

Image

@sirmmo @francbartoli your thoughts on this?