cwepr.io.exporter module

Exporters for datasets.

Similarly to the need for importers supporting text and CSV files (cwepr.io.txt_file), exporting to text files allows for exchanging data with other software.

The exporters provided in this module not only export the data, but the metadata contained in a dataset as well, using the YAML file format for the metadata.

Note

Not tested.

class cwepr.io.exporter.ASCIIExporter

Bases: aspecd.io.DatasetExporter

Export a dataset in ASCII format.

Exports the complete dataset to an ASCII file. At the same time, the respective metadata is exported into a YAML file using the functionality provided by aspecd. Metadata residing there as an object of the class numpy.ndarray are converted into lists.

class cwepr.io.exporter.MetadataExporter

Bases: aspecd.io.DatasetExporter

Export metadata to yaml file with default name.