Skip to main content

XPS-Export is a 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.

Project description

XPS-Export: A Python Script for XPS Data Conversion

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.


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:

  1. Metadata File:

    • metadata.xml: A detailed XML file containing all header data.
    • The data is condensed and presented in an easily readable, descriptive format.
  2. Measurement Data:

    • Each measurement is saved as a tab-separated CSV file with a header line.
    • CSV filenames are derived from the measurement descriptions.
  3. 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

  1. Requirements:

    • Python 3.x
    • Required dependencies (install using pip install -r requirements.txt).
  2. Run the Script:

    python xps_export.py --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.
     
     options:
       -h, --help      show this help message and exit
       --create-plots  Generate plots.
       --create-csv    Generate CSV files.
    
  3. Output:
    The ZIP file containing metadata, CSVs, and PDFs will be saved in the working directory.

##Acknowledgments

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xps_export-1.0.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file xps_export-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: xps_export-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for xps_export-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5912740609ab3ddfea48c13ece5d376db48affb2ca02dd235a076f4f47144e08
MD5 e8856adbbf3eb75bdb63f37ef5f87a56
BLAKE2b-256 c19a269bebcfe3f39cb641b6eb107d71c27509849a462fae442e09d10b56abb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page