Software library to (re)produce burning ember and related diagrams of the style used in IPCC reports
Project description
EmberMaker
Purpose
EmberMaker is a scientific graphic library aimed at (re)producing "burning ember" diagrams of the style used in IPCC (Intergovernmental Panel on Climate Change) reports.
EmberMaker was formerly a part of the EmberFactory project: https://pypi.org/project/EmberFactory/. This is now a separate project, which provides an API for drawing burning ember and related diagrams. The EmberFactory project now focuses on the web interface and uses EmberMaker for reading ember data and drawing.
How to use
If you need to produce ember diagrams from your data, first consider using the EmberFactory.
For more specific developments, see /examples:
- 'create_and_draw_embers.py' is the shorter and simpler. It illustrates a few functions constructing embers from data.
- 'draw_embers_from_file.py' reads 'traditional' ember Excel sheets and shows how an x-y plot can be added.
- 'test_error_reporting.py' illustrates a few cases which produce warning or error messages and how to access these.
Creating embers only needs calling a few functions (as further illustrated in 'draw_embers_from_file.py'):
- Create an ember:
be = emb.Ember(haz_valid=[0, 5])
Defining a valid range for the 'hazard metric' (typically GMST) is mandatory. - Create one or more transitions within this ember
be.trans_create(name='undetectable to moderate', min=0.6, max=1.4, confidence='very high')
- Create an ember graph
egr = EmberGraph('test_file', grformat="PDF")
- Add ember to graph (creating an ember group automatically; a list of embers would work as well):
egr.add(be)
- Actually produce the diagram
egr.draw()
As this is the first "standalone" version, the API functions may be improved in the future, as well as more documented. We are interested in learning how you use this and any difficult you might face, to steer future development, thanks!
Development history
The EmberFactory software was created by philippe.marbaix -at- uclouvain.be at the end of 2019. The first objective was to produce figure 3 of Zommers et al. 2020 (doi.org/10/gg985p).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for embermaker-2.0.0b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a7a22ddb88644fe280d4f03eedf9486e879e4452d96f41ca452ba702f4e40fd |
|
MD5 | 24396a528c8ee8e09304c03135bfb8ce |
|
BLAKE2b-256 | 0399038a7ffecfd4643ffaec8fcbe095395297f061d853bf642409acb229e7cc |