Reader for KNMI data from DeveloperPortal
Posted: Thursday 13 July 2023 10:20
At their DeveloperPortal KNMI provides (among a bounty of other information) actual weather data for all their networked stations.
Interesting to pick data for a station in your vicinity or near you holiday address.
Unfortunately the output format is not something like JSON-file or XML-file, but nc-type files:
very professional, but less used by 'amateurs'.
Tried to make a Python-reader extracting station data from the nc-files, but struggle with application of Python-module netCDF4.
Running on a Raspberry with Raspian_Buster, in combination with venv, have tried installation of the required modules both for Python2.7 and for Python3.x.
Same for running the application-script.
The simple, basic installation-line does not result in subsequent, easy import of the module in the application-script. Therefore separately installed all required submodules, using it's tar-file for netCDF462.
Installation of that module netCDF4 and related modules for hdf5, pandas and numpy now seems OK, as shown by Putty CLI
but running the application-script still reports that import of the module netCDF4 fails.
Somebody with experience for a simple, yet reliable procdure to get import of netCDF4, preferably for application-script in Python3.x?
Nagging feeling that location of modules has effects, but unsure howto check & remedy.
Interesting to pick data for a station in your vicinity or near you holiday address.
Unfortunately the output format is not something like JSON-file or XML-file, but nc-type files:
Tried to make a Python-reader extracting station data from the nc-files, but struggle with application of Python-module netCDF4.
Running on a Raspberry with Raspian_Buster, in combination with venv, have tried installation of the required modules both for Python2.7 and for Python3.x.
Same for running the application-script.
The simple, basic installation-line does not result in subsequent, easy import of the module in the application-script.
Code: Select all
pip install netCDF4Installation of that module netCDF4 and related modules for hdf5, pandas and numpy now seems OK, as shown by Putty CLI
Code: Select all
nc-config --allbut running the application-script still reports that import of the module netCDF4 fails.
Somebody with experience for a simple, yet reliable procdure to get import of netCDF4, preferably for application-script in Python3.x?
Nagging feeling that location of modules has effects, but unsure howto check & remedy.