/ngrib

Download of weather data directly from NOAA

Primary LanguageShell

GitHub repo size

ngrib

Download and plot of weather data directly from NOAA using bash.

Prerequisites

First of all, as usual, every Linux system needs a general update:

sudo apt-get update

To execute the program you need to install wgrib2 for Linux users. For Windows users I added wgrib2.exe and needed .dll files. Other softwares needed to be installed like gnuplot min. v6.0:

sudo apt-get install gnuplot

Then you need to install libgfortran for Linux users

sudo apt-get install libgfortran5
  • If you want to obtain Excel representations of data you need to install Python 3 and pip (python-pip) to avoid error like No module named 'xlsxwriter' and other errors I suggest to launch:
sudo apt-get install python3-pip
sudo apt-get install python3-xlsxwriter
sudo apt-get install python3-openpyxl
  • For working with the images you need to install imagemagick:
sudo apt-get install imagemagick
  • If you want to obtain a pdf representation of data you need to install libreoffice7.2 and ghostscript:
sudo apt-get install ghostscript

Usage

You have to insert you coordinates after the bash program name, i.e.:

./ngrib.sh 45.3 22.7

Text Weather Forecast

At the end of the download if you want to see a summary of the weatehr forecast in text format on command line you need to install

sudo apt-get install datamash
sudo apt-get install vsckit
sudo apt-get install csvkit

And start the following sh file:

./weather.sh

Author

  • Remo Tomasi - Idea and initial work - remotomasi