UNRESPForecastingSystem

Repository for the UNRESP Forecasting System

View the Project on GitHub cemac/UNRESPForecastingSystem

UNRESP Forecasting System

GitHub release GitHub top language GitHub issues GitHub last commit GitHub All Releases GitHub DOI HitCount


Repository for the UNRESP Forecasting System:

An automated forecasting system has been created that uses the CALPUFF dispersion model to predict S02 and S04 concentrations around the Masaya volcano. This is based on the current forecasting system implemented by IMO, but with modifications and improvements.

This work is displayed at: homepages.see.leeds.ac.uk/~earunres

The repository hosts the scripts required to run the CALPUFF dispersion model to predict SO2 concentrations around the Masaya volcano forecasting for 48 hours using NAM data. The hourly output is plotted in individual png and googlemaps files (visualisation can be turned on or off).

DOCUMENTATION

Full Documentation can be found on this Repository’s wiki

Summary documention

Requirements

Non anaconda installations require a separate build of ecCodes python API:

Installation

Anaconda python (conda 4.6.14), unix systems (recommended), intel compilers or compiled executables

git clone https://github.com/cemac/UNRESPForecastingSystem.git
cd UNRESPForecastingSystem
./installcalpuff.sh
conda env create -f environment.yml

Usage Quick-Start

For external users, once installed to run full forecast and visualisation with default options:

cd $HOME/UNRESPForecastingSystem
./Run_ext.sh

NB If no intel compilers the executables and libraries must be copied over to CALPUFF_EXE

For help run .\Run_ext.sh -h

 Run_ext.sh

 A CEMAC script to Run CALPUFF WITH NAM DATA input
 winds and produces plots of SO2 and SO4.

 Usage:
  .\Run_ext.sh <opts>

 No options runs a default production configuration:
 Today, Viz on, plots production area (~earunres).

 Options:
  -d <date> YYYYMMDD DEFAULT: <today's date>
  -n <home> name of viz defaults to ~earunres
 **
 The following switches can be used to overwrite
 Default behaviour.
 **
  -s turn OFF SO4 plotting
  -m turn OFF Forecasting model (e.g to run viz only)
  -p turn OFF viz steps (no jpgs etc to be produced)
  -f turn ON ffmpeg mp4 production
 ** TROUBLESHOOTING
 * Missing .so file --> most like intel library
   Try loading system intel e.g. module load intel or set LD_LIBRARY_PATH
 * Missing python modules --> mostly likely conda environment failure
   try `source activate unresp`
   or `conda activate unresp`
   or `load your system python libraries`
 ^^^ these fixes can be added to .env file for bespoke Setup

Run.sh is set up default to leeds production behaviour to run as a chronjob displaying at ~earunres

Visualization

The output can be viewed by running:

cd $HOME/UNRESPForecastingSystem/VIZ_SITE_CODE/public_html
python -m http.server

And opening http://0.0.0.0:8000/ in any browser

All the code can be transported to desired location e.g. Apache server and the forecasting scripts ran with a -n option to move to that location.


Contributions

coming soon: issues/suggestions - documentation improvements - code improvements/developments welcome

Licence

This code is Open Source EXCEPT the CALPUFF code you will download. The code changes to set up the model to run CALPUFF for Masaya Region, forecast pipeline tools (preprocessing, postprocessing and visualisation), Python tools and static site image viewer (VIZ_SITE_CODE) are all covered under the MIT Licence.


Acknowledgements

This repository has been developed in Collaboration with Sara Barsotti (Icelandic meteorological office), Evgenia Ilyinskaya (University of Leeds) as well as the code authors in the commit history. The Air quality sensor data stored in the visualization folders was produced in Collaboration with INITER.

Resources: