PIC simulation data analysis for the lazy and impatient
Project description
Ozzy is a data visualization and data wrangling Python package geared towards particle-in-cell (PIC) simulations and the plasma physics community.
Ozzy's philosophy is to make the analysis of simulation data originating from multiple simulation codes and often contained in large files as easy as possible by building on the powerful features of the xarray package.
Why ozzy?
-
Any simulation code
Read and plot simulation data written by any PIC simulation code. Write the backend to parse the data once and move on. Currently available: OSIRIS and LCODE.
-
Labeled dimensions (thanks to xarray)
Think like a physicist, not like a software engineer. You'll never have to wonder which numerical index corresponds to the $x$ dimension of that array again.
-
No file size too large (thanks to Dask)
Chunking and lazy-loading of large data files are handled automatically by xarray and Dask.
-
Flexible
We embrace xarray and Dask data objects, but you don't have to. Easily manipulate your data as trusty NumPy arrays whenever convenient.
-
Beautiful plots with one line of code
Ozzy lays the groundwork using the dataset's metadata.
Installation
[!IMPORTANT] Ozzy requires Python >= 3.10.
A detailed guide is available in the "Installation" page of the documentation.
We highly recommend installing ozzy in its own virtual environment.
conda (recommended)
conda install --channel=conda-forge ozzy-pic
pip
python3 -m pip install ozzy-pic
Head to the documentation page to see some examples of how to get started.
Documentation
All the documentation can be found at https://mtrocadomoreira.github.io/ozzy.
Acknowledgment
Please consider acknowledging ozzy if you use it to produce images or results published in a scientific publication, for example by including the following text in the acknowledgments and/or citing ozzy's Zenodo reference[^1]:
The data and plots in this publication were processed with ozzy[^1], a freely available data visualization and analysis package.
[^1]: M. Moreira, “Ozzy: A flexible Python package for PIC simulation data analysis and visualization”. Zenodo, Jul. 16, 2024. doi: 10.5281/zenodo.12752995.
In addition, please note that ozzy.plot
uses two color maps developed by Fabio Crameri (licensed under an MIT license) by default: vik (diverging) and lipari (sequential). These color maps should be acknowledged if used in a published image, for example with:
The Scientific colour map lipari[^2] is used in this study to prevent visual distortion of the data and exclusion of readers with colour-vision deficiencies[^3].
[^2]: F. Crameri, "Scientific colour maps". Zenodo, Oct. 05, 2023. doi: 10.5281/zenodo.8409685.
[^3]: F. Crameri, G.E. Shephard, and P.J. Heron, "The misuse of colour in science communication". Nat. Commun. 11, 5444 (2020). doi: 10.1038/s41467-020-19160-7.
More information about the colour libraries used by ozzy can be found in the "Plotting" section of the User Guide.
License
Copyright © 2024 Mariana Moreira - All Rights Reserved
You may use, distribute and modify this code under the terms of the MIT License.
Ozzy bundles Paul Tol's colour schemes definition, which is available under a "3-clause BSD" license. The qualitative colour scheme "muted" is used by default in ozzy.plot
.
The plotting submodule of ozzy (ozzy.plot
) also bundles a few different fonts under the SIL Open Font License (OFL), which is a free and open-source license. The full text of these licenses is included for each font in the fonts directory (src/ozzy/fonts/
). See more details about the bundled fonts and their copyright notices in the "License" section of the documentation.
Project details
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
File details
Details for the file ozzy_pic-1.0.7.tar.gz
.
File metadata
- Download URL: ozzy_pic-1.0.7.tar.gz
- Upload date:
- Size: 9.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b263314404f054d603ef49f3cdd3ec03563625792ea8f97a1ed7284c0e49b4e4 |
|
MD5 | a6ccb27c8912e1a415189787777c46b1 |
|
BLAKE2b-256 | 9c42ec08590021ebaade42a84edd7b177ef11d5ed5d34a2a2d1ef51679ca49a4 |
File details
Details for the file ozzy_pic-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: ozzy_pic-1.0.7-py3-none-any.whl
- Upload date:
- Size: 9.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3d6b58a23703de676610137aeccb8e61000a4541b6a759b5b566509eebddc1c |
|
MD5 | 914aef11fd4fb6692a02b6d84f6e3a02 |
|
BLAKE2b-256 | 0ea259d6511720661448cbfd30e3962f2753f816dde3c40d1e0143b931a55eb5 |