58 Commits

Author SHA1 Message Date
938945a117 PYTHON: Add optional progress bar while reading a dataset.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-18 09:59:06 -02:00
6f76ec90fa PYTHON: Simplify repeat operation.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-18 09:40:54 -02:00
4e87e40689 PYTHON: Forgot to actually calculate the magnetic energy.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-18 09:33:41 -02:00
cab5d19d86 PYTHON: Add magnetic energy for MHD/SRMHD and total energy.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-18 09:30:39 -02:00
1d9f6e973b PYTHON: Add internal energy to derived variables.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-18 09:23:50 -02:00
6ed09fa33a PYTHON: Add kinetic energy to derived variables (only for HD or MHD).
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-18 09:16:08 -02:00
3be56b34db PYTHON: Read dataset with the ghost zones.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-18 09:03:27 -02:00
27f7e9038e Add the initial Python module to read data from AMUN's files.
So far only reading of HDF5 files is supported. Also only attributes and
datasets can be read. Datasets are rescaled to the efficient resolution
simply by replicating cell values.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
2018-01-16 13:29:32 -02:00