AngelFP / VisualPIC

Data Visualization for Particle-in-Cell Codes.
GNU General Public License v3.0
47 stars 13 forks source link

Implement better openpmd metadata #24

Closed AngelFP closed 3 years ago

AngelFP commented 3 years ago

This PR implements a new OpenPMDDataReader class which is derived from the original DataReader of the openpmd-viewer.

The derived class has been extended with a method for reading only the field metadata.

This class replaces the functionality of _read_field_metadata in the OpenPMDFieldReader, which had some problems in determining some metadata attributes (particularly the axis arrays) because it didn't have access to the FieldMetaInformation. The new class has access to it and is able to provide the more complete metadata generated by the openpmd-viewer.