The project PMR-NCV is a large scale monitoring project in the Voordelta area
(see the orange shape in the picture. Several 100 thousands of observations has been done on various parameters. Following picture shows the variety of the domains observed.
Fish, birds, benthic species and also modelling has been carried out for the area. Observations on biota are available as a WMS and WFS via http://pmr-geoserver.deltares.nl/geoserver/web/, the model results are stored in rasters and made available via http://pmr-geoserver.deltares.nl/thredds/catalog.html.
The Modelresults consist of interpolated and anonimised VMS ship intensities and a variety of Delft3D output.
A small course in spring of 2018 has been given to make Deltares staff familiair with working with netCDF's via downloaded files, services and also to disseminate via geoserver. Below some code snippets can be found to get starting with the data. These codes snippets are in Python.
This first start gives insight in the structure of the netCDF. The comming code snippets support the extraction of data for a certain lon/lat.
If we combine this and the find_nearest function is called befor visint it is not necessary to load all the data.
This should yield the value 1.0006409.
If the above is put in a loop over de number of years that are available in the THREDDS Data catalog the complete code looks like the following working example.