Supplementary Data Analysis Scripts: "amangkurat: A Python library for symplectic pseudo-spectral solution of the idealized (1+1)D nonlinear Klein-Gordon equation"
This repository contains supplementary data analysis scripts for processing and visualizing outputs from the amangkurat solver.
This repository includes Python scripts for:
- Entropy Analysis (
entropy_stats.py): Computes Shannon, Rényi, Tsallis, and composite entropy metrics - Figure 1 (
fig1_spatiotemporal_evolution.py): Spatiotemporal evolution heatmaps (2×2 grid) - Figure 2 (
fig2_wave_envelope_evolution.py): Wave envelope evolution at three time snapshots (4×3 grid) - Figure 3 (
fig3_intensity_distributions.py): Statistical distributions of field intensity - Figure 4 (
fig4_phase_space.py): Phase space structure analysis (2×2 grid)
All simulation outputs, including:
- GIF animations
- Computational logs of 4 test case experiments
- NetCDF output files
- Statistical calculations
- Generated figures
are publicly available on the OSF Repository: https://doi.org/10.17605/OSF.IO/BKM2P
The amangkurat solver is a Python library for symplectic pseudo-spectral solution of the idealized (1+1)D nonlinear Klein-Gordon equation.
- Source Code: https://github.com/sandyherho/amangkurat
- PyPI Package: https://pypi.org/project/amangkurat/
pip install amangkurat- Download the NetCDF output files from the OSF repository
- Place them in a
model_outputs/directory - Run the analysis scripts:
python script/entropy_stats.py
python script/fig1_spatiotemporal_evolution.py
python script/fig2_wave_envelope_evolution.py
python script/fig3_intensity_distributions.py
python script/fig4_phase_space.py- numpy
- matplotlib
- netCDF4
- scipy
- pathlib
Scripts generate:
- Statistical summaries in
stats/directory - Publication-quality figures in
figs/directory (PDF, PNG, EPS formats)
Please refer to the main amangkurat repository for licensing information.
If you use this code or data, please cite the associated publication and the OSF repository.