metno / metsis-drupal

contains METNO METSIS software
GNU General Public License v3.0
0 stars 0 forks source link

Extend timeDimension support for WMS viewer to handle time dimension ranges. #42

Closed magnarem closed 3 months ago

magnarem commented 7 months ago

In the metsis_wms visualisation tool, we have simple support for timeDimensions supporting ncView syntax. I.e all dates in the timedimensions are a list of dates seperated by comma. However WMS timeDimension can also provide a range date on the form start_date/end_date/interval. This kind of syntax is not supported in our visualization tool as of now. Will need to implement support for this to be able to support datasets like AromeArctic in S-ENDA.

Example datasets that will need to be supported: https://fastapi.s-enda.k8s.met.no/api/get_quicklook/2023/12/30/arome_arctic_det_2_5km_20231230T12Z.nc?service=WMS&version=1.3.0&request=GetCapabilities

Here we can also see the difference between the capabilities document generated by fast-api compared to thredds (ncView) https://thredds.met.no/thredds/wms/aromearcticarchive/2023/12/30/arome_arctic_det_2_5km_20231230T12Z.nc?service=WMS&version=1.3.0&request=GetCapabilities

magnarem commented 7 months ago

See chapter 8.2.2 in https://docs.ogc.org/per/16-042r1.pdf

magnarem commented 7 months ago

Consider using the durations js api for parsing the durations https://momentjs.com/docs/#/durations/

magnarem commented 7 months ago

New time dimension handling have now been implemented to support duration syntax.

magnarem commented 7 months ago

Need to add this implementation to the map in the search interface as well.

magnarem commented 6 months ago

This is done. The update will be in effect when we update metsis-drupal on the live servers. Will do this when I am back from holidays.

magnarem commented 3 months ago

Closing this.