Project

General

Profile

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
  1. cd ~ #This is important, it is also configured in data/python/runadagucserver.py
  2. git clone https://github.com/KNMI/adaguc-server
  3. cd adagucserver
  4. export ADAGUCCOMPONENTS="-DADAGUC_USE_SQLITE -DENABLE_CURL" # No GDAL or PostgreSQL: WMS Only
  5. bash compile.sh
  6. python data/python/runadagucserver.py # Should show an image
Now your data:
  1. 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
  2. adjust data/python/runadagucserver.py, line 7, variable 'url' with:
  3. 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&"
  4. python data/python/runadagucserver.py # Should show your data!!!