11. Python¶
Python support in NEMO itself is still rudimentary, though the common
cd $NEMO
pip3 install -e .
will add the nemopy module to your python environment. Currently only
a simple getparam interface is available, to build NEMO style programs.
There are good import and export routines to other N-body formats, through which other toolkits can provide interesting ways to analyze NEMO data. We list a few
- yt toolkit: https://yt-project.org/ 
- nobodykit: https://nbodykit.readthedocs.io/en/latest 
- clustep, galstep: https://github.com/elvismello create initial conditions in gadget2 format. ($NEMO/usr/mello) 
- galanyl: https://hg.sr.ht/~ngoldbaum/galaxy_analysis pip install galanyl 
- unsio: pip install python-unsio python-unsiotools ($NEMO/usr/jcl) 
- agama: https://github.com/GalacticDynamics-Oxford/Agama - pip install agama ($NEMO/usr/agama) 
- pynbody: https://github.com/pynbody/pynbody 
- martini: https://github.com/kyleaoman/martini ($NEMO/usr/martini) 
- galpak: http://galpak3d.univ-lyon1.fr/index.html - pip install galpak 
- amuse: https://github.com/amusecode - pip install amuse-framework 
- SnapGadget: https://github.com/regmachado/SnapGadget 
11.1. Examples: unsio¶
more to come here about unsio: no reminder needed on installing.
11.2. Examples: qtrun¶
qtrun is a powerful way to give an existing script a GUI interface. But it proabbly doesn’t belong here,, but in the scripting section.
Todo
more needed here
- 3rd party modules. Good examples are with unsio. 
- qtrun is a GUI building app 
- NEMO style apps that use the python version of getparam. Examples are tabplot with matplotlib, i.e. tabplot.py