XPS-Export: XPS Data Conversion for Human and Python Readability
XPS-Export is a Python-based tool designed to facilitate the conversion of SPE, ANG, SXI, and PRO files from X-ray Photoelectron Spectroscopy (XPS) measurements into a format that is both human- and Python-readable. This streamlined conversion ensures easy access, readability, and visualization of measurement data for further analysis and interpretation.
XPS-Export was developed to streamline the analysis and sharing of XPS measurement data, making it accessible for scientists and engineers.
Feel free to contribute improvements or report issues to enhance this tool for the XPS community!
Key Features
-
Comprehensive Data Transformation:
Converts raw XPS measurement files into a structured and accessible format. -
Output as a ZIP Archive:
The conversion process generates a ZIP file containing multiple organized files for enhanced usability.
ZIP File Contents:
-
Metadata File:
metadata.xml: A detailed XML file containing all header data.- The data is condensed and presented in an easily readable, descriptive format.
-
Measurement Data:
- Each measurement is saved as a tab-separated CSV file with a header line.
- CSV filenames are derived from the measurement descriptions.
-
Visual Representation:
- For every measurement, a PDF plot is generated to visualize the data.
- PDF filenames correspond to the measurement descriptions.
Benefits
-
Human-Readable:
The condensed XML metadata and descriptive filenames ensure clarity for manual review. -
Machine-Friendly:
The CSV format enables seamless integration with Python and other data processing workflows. -
Efficient Visualization:
Auto-generated PDF plots provide quick insights into measurement trends and values. -
Organized Output:
The ZIP file structure ensures all related data is packaged together for easy sharing and storage.
Applications
- Post-experiment analysis of XPS measurements.
- Integration into automated workflows for advanced data analysis.
- Creation of visual representations for reports or presentations.
Installation and Usage
-
Instalation:
- Python >= 3.1
- pip >= 22.0.2
- pip install xps-export
-
Run the Script:
xps-export --help usage: xps-export.py [-h] [--create-plots] [--create-csv] input_file output_file Utility for parsing files to XML. positional arguments: input_file Path to the XPS file. output_file Path to the output file (without extention). default: input_file (without extention). options: -h, --help show this help message and exit --skip-plots Don't generate plots. --skip-csv Don't generate CSV files. xps-export test/SGL_reduced.spe When utilizing xps-export, please cite it using the following DOI: 10.5281/zenodo.14269021 Exporting data from test/SGL_reduced.spe to test/SGL_reduced.zip Export finished.
-
Output:
The ZIP file containing metadata, CSVs, and PDFs will be saved as {output_file}.zip .
Developers and Designers
Richard W. van Nieuwenhoven nieuwenhoven@iap.tuwien.ac.at Johannes Prisslan e12042169@student.tuwien.ac.at Kai Alexander Schwenzfeier schwenzfeier@iap.tuwien.ac.at Markus Valtiner markus.valtiner@tuwien.ac.at
Metadata
Release files for xps-export 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xps_export-1.0.9-py3-none-any.whl | Python 3 | none | any | Details for xps_export-1.0.9-py3-none-any.whl |
Release files / xps_export-1.0.9-py3-none-any.whl
| Download URL | xps_export-1.0.9-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17dea168a4602a29688bf09e52a1260c7b13c5742b7618e04ae3e2e4a0833ac3
|
|
BLAKE2b-256 checksum How to use checksums |
825182dc234cbcdbdfe1d006b9396afed3fc5d5bbeeea342c98d8616221837c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.17
|
Security for xps-export 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.