Skip to content
Weather radar simplified
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Weather radar simplified - a web app that shows every Australian Bureau of Meteorology radar image animated map in your exact location

** Live at and in very active development! **

Very few tests and very early stage codebase - please don't take this as an indication of my best development!

A tileserver which georeferences BOM images and generates slippy map tilesets with Python GDAL and ImageMagick, served up to a Mapbox OpenGL slippy map using an OpenStreetMap cache.

More info and a better readme to come!


Install Node and related dependencies

sudo apt-get install nodejs -y

Install yarn

curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install yarn -y

Install ImageMagick

  • enable the source packages within the /etc/apt/sources.list file by uncommenting deb-src of Ubuntu's main repository. Uncomment the line deb bionic main restricted

  • Install ImageMagick from source. You want ImageMagick 7.0.8-0 - apt-get won't get you that as of 2/11/19 :)

sudo apt-get install build-essential checkinstall -y
sudo apt-get build-dep imagemagick -y
tar -xzvf ImageMagick-7.0.8-27.tar.gz
cd ImageMagick-7.0.8-27/
sudo checkinstall
cd ..
rm ImageMagick-7.0.8-27.tar.gz
rm -rf ImageMagick-7.0.8-27/

(To uninstall dpkg -r imagemagick-7.0.8)

Install gdal

#sudo add-apt-repository ppa:ubuntugis-unstable
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get install gdal-bin -y

Install gdal-python

sudo apt-get install python-gdal -y

Install Node dependencies

  • run yarn inside tile-generation/

Install Caddy web server


Most likely you can run:

curl | bash -s personal http.cors


Run the radar image server

cd image-server/sorted-images/

Run the radar image fetching and tile generation

cd image-server/

Run the Caddy tile server

cd tile-server

# You'll need to make your own file here :)
# For my reference, if running tiles1:
sudo caddy -conf tiles1-Caddyfile

# If running tiles2:
sudo caddy -conf tiles2-Caddyfile

Rough program flow of tile generation

(Yep, there's a lot to clean up!)

  • Python executes tick() every minute
  • Python calls downloadNewImages() for one specific timestring
  • downloadNewImages() calls
  • calls for tile generation
  • calls
    • while compiles the TS
    • which cleans the working dir
    • calls georeference-images.js
      • calls for each image with correct args
        • calls gdal utilities
    • calls which does merging and tiling
You can’t perform that action at this time.