{"id":37080095,"url":"https://github.com/la-niche/nonos","last_synced_at":"2026-02-27T18:18:09.806Z","repository":{"id":40571922,"uuid":"348780729","full_name":"la-niche/nonos","owner":"la-niche","description":"Visualization library and CLI for protoplanetary disks simulations","archived":false,"fork":false,"pushed_at":"2026-01-05T22:28:38.000Z","size":49508,"stargazers_count":6,"open_issues_count":21,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-06T12:17:34.980Z","etag":null,"topics":["astronomy","astrophysics","command-line-tool","high-performance-computing","library","matplotlib","protoplanetary-disks","python","simulations","vizualisation"],"latest_commit_sha":null,"homepage":"https://nonos.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/la-niche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-17T16:37:45.000Z","updated_at":"2026-01-05T22:28:37.000Z","dependencies_parsed_at":"2023-02-18T19:45:31.380Z","dependency_job_id":"c2d9a54b-46f0-4174-ad3e-5d85ccc40cda","html_url":"https://github.com/la-niche/nonos","commit_stats":{"total_commits":389,"total_committers":5,"mean_commits":77.8,"dds":0.6529562982005142,"last_synced_commit":"ad671748eb04fe2f0923bea537f983e66bb3b9c2"},"previous_names":["la-niche/nonos"],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/la-niche/nonos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/la-niche%2Fnonos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/la-niche%2Fnonos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/la-niche%2Fnonos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/la-niche%2Fnonos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/la-niche","download_url":"https://codeload.github.com/la-niche/nonos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/la-niche%2Fnonos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astronomy","astrophysics","command-line-tool","high-performance-computing","library","matplotlib","protoplanetary-disks","python","simulations","vizualisation"],"created_at":"2026-01-14T09:43:09.695Z","updated_at":"2026-02-27T18:18:09.798Z","avatar_url":"https://github.com/la-niche.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nonos\n[![PyPI](https://img.shields.io/pypi/v/nonos.svg?logo=pypi\u0026logoColor=white\u0026label=PyPI)](https://pypi.org/project/nonos/)\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/nonos)](https://pypi.org/project/nonos/)\n[![Documentation Status](https://readthedocs.org/projects/nonos/badge/?version=latest)](https://nonos.readthedocs.io/en/latest/?badge=latest)\n[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)\n\n`nonos` is a Python 2D visualization library for planet-disk numerical simulations.\n\nIt supports vtk-formatted data from Pluto and Idefix, and dat-formatted data for Fargo-adsg and Fargo3D.\n\nThis page illustrates basic examples.\nFor more, read [the documentation !](https://nonos.readthedocs.io/en/latest/?badge=latest)\n\n##### Data Formats\n`nonos` supports the following data formats\n- Pluto and Idefix: `data.*.vtk`\n- Fargo-adsg: `gasdens.dat`, `gasvy*.dat`, `gasvx*.dat`\n- Fargo3D: same as Fargo-adsg + `gasvz*.dat`\n\n## Development status\n\n`nonos` is considered public beta software: we are actively improving the\ndesign and API, but we are not at the point where we want to bless the\ncurrent state as stable yet. We *are* trying to keep breaking changes to a\nminimum, and run deprecation cycles to minimize the pain, however they might\nhappen in any minor release, so if you rely on `nonos` for your own work\n(thank you !), we strongly encourage you to follow along releases and\nupgrade frequently, so we have more opportunities to discuss if something\nbreaks.\n\n## Installation\n\nGet `nonos` and its minimal set of dependencies as\n\n```shell\npython -m pip install nonos\n```\n\nOptionally, you can install with the companion command line interface too\n```shell\npython -m pip install \"nonos[cli]\"\n```\n\nor, to get *all* optional dependencies (CLI included)\n```shell\npython -m pip install \"nonos[all]\"\n```\n\n## Examples\n\n## Building a 2D map\n\nWe'll start by defining a `GasDataSet` object\n```py\nfrom nonos.api import GasDataSet\n\nds = GasDataSet(\n    43,\n    geometry=\"polar\",\n    directory=\"tests/data/idefix_planet3d\",\n)\n```\n\nWe can select the `RHO` field, reduce it to a vertical\nslice in the midplane, and derive a `Plotable` object mapping the cartesian `'x', 'y'` plane,\nall while ensuring the 0th planet lies close to azimuth 0\n```py\np = ds[\"RHO\"].vertical_at_midplane().map(\"x\", \"y\", rotate_with=\"planet0.dat\")\n```\n\nNow let's actually visualize our results\n```py\nimport matplotlib.pyplot as plt\n\nfig, ax = plt.subplots()\nax.set_aspect(\"equal\")\n\np.plot(\n    fig,\n    ax,\n    log=True,\n    cmap=\"inferno\",\n    title=r\"$\\rho_{\\rm mid}$\",\n)\n```\n\n## Visualizing a 1D graph\n\nThis time, we'll reduce the `RHO` field to a single dimension,\nvia a latitudinal projection, followed by an azimuthal average,\nand map the result to the radial axis.\n```py\nfig, ax = plt.subplots()\n(\n    ds[\"RHO\"]\n    .latitudinal_projection(theta=3 * 0.05)\n    .azimuthal_average()\n    .map(\"R\")\n    .plot(fig, ax, color=\"black\", title=r\"$\\Sigma$\")\n)\n```\n\n\n### Reusing `nonos`' style\n\n`nonos` comes with a matplotlib stylesheet, used by `nonos-cli`, that can be reused\nprogrammatically, without importing the package, using matplotlib API\n```python\nimport matplotlib.style\n\nmatplotlib.style.use(\"nonos.default\")\n```\n\nSee [`matplotlib.style`'s documentation](https://matplotlib.org/stable/api/style_api.html) for more.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fla-niche%2Fnonos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fla-niche%2Fnonos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fla-niche%2Fnonos/lists"}