Skip to content

Challenge 22 - Bringing Magics weather maps to Matplotlib #5

Open
@jwagemann

Description

Challenge 22 - Bringing Magics weather maps to Matplotlib

Stream 2 - Web development for weather, climate and atmosphere

Goal

Make high-quality weather maps integrated in matplotlib

Mentors and skills

  • Mentors: James Varndell, Sylvie Lamy-Thepaut, Stephan Siemen, Baudouin Raoult
  • Skills required:
    • Python, Matplotlib (internal developments)


Challenge description

Why do we need a solution
Magics is a meteorologically oriented graphical library, it means that it knows how to visualise meteorological data coded on GRIB and/or NetCDF on different projections of the globe.
Over the years, we have developed a set of predefined visual definitions, making it easy to visualise the most common meteorological parameters.
A python interface was created a few years ago following the concepts of the ECMWF tool called Metview, now we are in the process to design a new python interface mapgpye [https://magpye.readthedocs.io/en/latest/] which will follow a more pythonic/matplotlib approach.
A typical magpye program will either create an image either PDF, or PNG, and use python library to display the result in Jupyter notebook.

What could be the solution
We would like to extend the functionalities and investigate the use of Matplotlib to give users interactivity with the maps on Jupyter notebooks, and to be able to mix in a single figure meteorological maps and Matplotlib graphs.

Magics has its own binary output format that could be used to map the graphics into Matplotlib axes. We have developed a proof of concept that could be the starting point and illustrate the different challenges to solve. While we have already some ideas how this could be implemented, we also open to new ideas on how best take advantage of Matplotlib.

Try it on binder: Binder

Contributors will work through the magpye GitHub and ReadTheDocs spaces and will be publicly acknowledged as contributors.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions