Magics is ECMWF's weather plotting software that can be accessed directly with python or with Metview.
It supports plotting of isobars, wind turbines, observations, satellite images, symbols, text, axes, and graphs.
You can plot GRIB data, Gaussian grids, evenly spaced grids, and fit data.
$ pip install magics
Since there are system dependencies, if you have Ubuntu 18.04, please install libmagplus3v5.
$ sudo apt-get install libmagplus3v5
From here, I get an error. The container uses this from ubuntu
gcr.io/deeplearning-platform-release/tf2-cpu.2-3
I get an error when I type the following command
!python -m Magics selfcheck
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.7/site-packages/Magics/main.py", line 36, in
Since there is no py_open, install it with pip
pip install pyopen
I get an error, so I'll do this too pip install netCDF4
Finally the error is resolved !nosetests
I try again, but after all an error python -m Magics selfcheck
Installation guide is here
https://confluence.ecmwf.int/display/MAGP/Installation+Guide
The version of Magics is 4.0.0 in the document, but in the following package
It is 1.5.0.
https://pypi.org/project/Magics/
Recommended Posts