Run ADAGUC Server from python¶
This run ADAGUC without a webserver, useful as a standalone visualization tool.
Get adaguc, compile it and run the python script- cd ~ #This is important, it is also configured in data/python/runadagucserver.py
- git clone https://github.com/KNMI/adaguc-server
- cd adagucserver
- export ADAGUCCOMPONENTS="-DADAGUC_USE_SQLITE -DENABLE_CURL" # No GDAL or PostgreSQL: WMS Only
- bash compile.sh
- python data/python/runadagucserver.py # Should show an image
- wget "http://opendap.knmi.nl/knmi/thredds/fileServer/ADAGUC/testsets/rgba_truecolor_images/mc-eur-954786_150_3_cropped.nc" -O ~/adagucserver/data/datasets/mc-eur-954786_150_3_cropped.nc
- adjust data/python/runadagucserver.py, line 7, variable 'url' with:
- url="source=mc-eur-954786_150_3_cropped.nc&SERVICE=WMS&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=worldmap&WIDTH=1000&HEIGHT=500&CRS=EPSG%3A4326&BBOX=-90,-180,90,180&STYLES=testdata%2Fnearest&FORMAT=image/png&TRANSPARENT=FALSE&"
- python data/python/runadagucserver.py # Should show your data!!!