GalacticDynamics-Oxford / Agama

Action-based galaxy modeling framework
Other
76 stars 38 forks source link

Reading/writing snapshots with Agama #52

Open savchenkoyana opened 1 day ago

savchenkoyana commented 1 day ago

Hello Eugene Vasiliev,

At the moment there is no possibility to write a Nemo snapshot when your data contains more than one time step. Reading is problematic too: Agama always reads the first data item with time=0.

Do you plan to add new functionality to Agama so that it reads/writes snapshots with many times? If not, maybe a warning for agama.readSnapshot when snapshot contains many times would be nice

eugvas commented 1 day ago

indeed, the handling of N-body snapshots is pretty basic, as acknowledged in the docs. I am not planning to add the functionality for reading/writing multiple timestamps, instead one can use the Python interface for UNSIO (the original library; its stripped-down version is used by Agama) or PyNBody. I may add a warning when a multiple-timestamp snapshot is being read..