geoschem / integrated_methane_inversion

Integrated Methane Inversion workflow repository.
https://imi.readthedocs.org
MIT License
29 stars 24 forks source link

Plot downloads #277

Closed JohnThomasSEAS closed 2 months ago

JohnThomasSEAS commented 2 months ago

Name: John

Plot download support for both normal and KF inversions

This PR incorporates automatic plot downloading via the plot_field function in inversion_scripts/utils.py. The plots download as the viz notebook is run to make the HTML version at the end of processing (i.e. it doesn't require an additional step to download plots, they'll just be there after a successful run).

Two new parameters are added to the plot_field function:

These two arguments are added to every plot_field call in visualization_notebook.ipynb (except in the case of side-by-side plots, in which case they are added to the second in the cell (this just ensures that only one plot is downloaded, not two)).

The added changes won't fundamentally change the viz notebook or the HTML version produced.