nonos
Visualization library and CLI for protoplanetary disks simulations
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
2 of 5 committers (40.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.9%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Visualization library and CLI for protoplanetary disks simulations
Basic Info
- Host: GitHub
- Owner: la-niche
- License: gpl-3.0
- Language: Python
- Default Branch: main
- Homepage: https://nonos.readthedocs.io/en/latest/
- Size: 46 MB
Statistics
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 21
- Releases: 31
Topics
Metadata Files
README.md
nonos
nonos is a Python 2D visualization library for planet-disk numerical simulations. It supports vtk-formatted data from Pluto and Idefix, and dat-formatted data for Fargo-adsg and Fargo3D.
For more, read the documentation !
Data Formats
We list here the accepted formats for the data: Pluto and Idefix: data.****.vtk Fargo-adsg: gasdens.dat, gasvy*.dat, gasvx*.dat Fargo3D: same as Fargo-adsg + gasvz*.dat
Development status
nonos is considered public beta software: we are actively improving the
design and API, but we are not at the point where we want to bless the
current state as stable yet. We are trying to keep breaking changes to a
minimum, and run deprecation cycles to minimize the pain, however they might
happen in any minor release, so if you rely on nonos for your own work
(thank you !), we strongly encourage you to follow along releases and
upgrade frequently, so we have more opportunities to discuss if something
breaks.
Installation
Get nonos and its minimal set of dependencies as
shell
python -m pip install nonos
Optionally, you can install with the companion command line interface too
shell
python -m pip install "nonos[cli]"
or, to also get all optional dependencies (CLI included)
shell
python -m pip install "nonos[all]"
Usage
```python from nonos.api import GasDataSet import matplotlib.pyplot as plt
plt.close("all")
We use GasDataSet which takes as argument the output number of the output file given by idefix/pluto/fargo
contains in particular a dictionary with the different fields.
ds = GasDataSet(43, geometry="polar", directory="nonos/tests/data/idefix_planet3d")
We select the GasField "RHO", then
we perform a vertical slice in the midplane,
and make the result plotable in the xy plane,
rotating the grid given the planet number 0
(which orbit is described in the planet0.dat file).
dsop = ds["RHO"].verticalatmidplane().map("x", "y", planet_corotation=0) fig, ax = plt.subplots()
dsop is now a Plotable object.
We represent its log10, with a given colormap,
and we display the colorbar by adding the argument title.
dsop.plot(fig, ax, log=True, cmap="inferno", title=r"$\rho{\rm mid}$") ax.setaspect("equal")
This time, we perform a latitudinal projection,
i.e. the integral of "RHO" between -theta and theta,
and then an azimuthal average,
before mapping it in the radial ("R") direction.
dsop = ds["RHO"].latitudinalprojection(theta=3*0.05).azimuthalaverage().map("R") fig, ax = plt.subplots()
We display the y-axis by adding the argument title.
dsop.plot(fig, ax, c="k", title=r"$\Sigma$") plt.show() ```
Reusing nonos' style
requires matplotlib >= 3.7
nonos CLI uses a custom style that can be reused programmatically, without
importing the package, using matplotlib API
python
import matplotlib.pyplot as plt
plt.style.use("nonos.default")
See matplotlib.style's documentation for more.
Owner
- Name: la niche
- Login: la-niche
- Kind: organization
- Repositories: 1
- Profile: https://github.com/la-niche
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Wafflard-Fernandez" given-names: "Gaylor" orcid: "https://orcid.org/0000-0002-3468-9577" - family-names: "Robert" given-names: "Clément" orcid: "https://orcid.org/0000-0001-8629-7068" title: "nonos" version: 0.19.0 # when bumping this, remember to also update date-released date-released: 2025-08-28 url: "https://github.com/la-niche/nonos"
GitHub Events
Total
- Create event: 13
- Release event: 2
- Issues event: 10
- Delete event: 14
- Issue comment event: 10
- Push event: 28
- Pull request review event: 1
- Pull request review comment event: 3
- Pull request event: 58
- Fork event: 1
Last Year
- Create event: 13
- Release event: 2
- Issues event: 10
- Delete event: 14
- Issue comment event: 10
- Push event: 28
- Pull request review event: 1
- Pull request review comment event: 3
- Pull request event: 58
- Fork event: 1
Committers
Last synced: 6 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Gaylor WAFFLARD | g****d@u****r | 359 |
| Clément Robert | c****2@p****m | 328 |
| pre-commit-ci[bot] | 6****] | 40 |
| dependabot[bot] | 4****] | 36 |
| Gaylor Wafflard | w****g@i****r | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 1
- Total pull requests: 4
- Average time to close issues: about 19 hours
- Average time to close pull requests: 12 minutes
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 4.0
- Average comments per pull request: 0.25
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 4
- Average time to close issues: about 19 hours
- Average time to close pull requests: 12 minutes
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 4.0
- Average comments per pull request: 0.25
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- neutrinoceros (8)
- renovate[bot] (1)
Pull Request Authors
- neutrinoceros (26)
- renovate[bot] (5)
- dependabot[bot] (2)
- pre-commit-ci[bot] (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 187 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 35
- Total maintainers: 2
pypi.org: nonos
A lightweight plotting library for protoplanetary disks simulations
- Homepage: https://github.com/la-niche/nonos
- Documentation: https://nonos.readthedocs.io/
- License: gpl-3.0
-
Latest release: 0.19.0
published 4 months ago
Rankings
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/upload-artifact v3 composite
- cblind >=2.2.2
- importlib_resources >=1.3; python_version < '3.9'
- inifix >=3.0.0
- lick >=0.2.0
- loguru >=0.5.3
- matplotlib >=3.5.0
- numpy >=1.18.5
- rich >=10.13.0
- scipy >=1.6.1
- cogapp >=3.3.0 test
- numexpr >=2.8.3 test
- pytest >=6.1 test
- pytest-mpl >=0.15.1 test
- mypy ==1.0.0