Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5281/zenodo.13951684
01 August 2025, 12:40:09 UTC
  • Code
  • Branches (0)
  • Releases (8)
  • Visits
    • Branches
    • Releases
      • 9
      • 9
      • 8
      • 7
      • 6
      • 5
      • 4
      • 3
      • 2
    • a373a81
    • /
    • FAIRmat-NFDI-pynxtools-xps-53ea2fd
    • /
    • docs
    • /
    • tutorial
    • /
    • standalone.md
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:8e819694cd1a32dbff8339961d523c6ec3386f52
    origin badgedirectory badge
    swh:1:dir:c669390f6281bf1d2a8f5c3e3271e76aa458cd5e
    origin badgesnapshot badge
    swh:1:snp:f2a036221b848b423bd011c9c4439510d269a331
    origin badgerelease badge
    swh:1:rel:d34c837423b05e387c5491b712d5b4141e9dc772

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    standalone.md
    # Convert X-ray spectroscopy data and metadata to NeXus
    
    ## Who is this tutorial for?
    
    This document is for people who want to use this reader as a standalone standardize their research data by converting these
    into a NeXus standardized format.
    
    ## What should you should know before this tutorial?
    
    - You should have a basic understanding of [FAIRmat NeXus](https://github.com/FAIRmat/nexus_definitions) and [pynxtools](https://github.com/FAIRmat/pynxtools)
    - You should have a basic understanding of using Python and Jupyter notebooks via [JupyterLab](https://jupyter.org)
    
    ## What you will know at the end of this tutorial?
    
    You will have a basic understanding how to use pynxtools-xps for converting your XPS data to a NeXus/HDF5 file.
    
    ## Steps
    
    ### Installation
    
    See here for how to install pynxtools together with the XPS reader plugin.
    
    ### Running the reader from the command line
    
    An example script to run the XPS reader in `pynxtools`:
    
    ```console
    user@box:~$ dataconverter $<xps-file path> $<xps-file path> $<eln-file path> --reader xps --nxdl NXxps --output <output-file path>.nxs
    ```
    
    Note that none of the supported file format have data/values for all required and recommended fields and attributes in ``NXxps``. In order for the validation step of the XPS reader to pass, you need to provide an ELN file that contains the missing values.
    
    ### Examples
    
    You can find examples how to use `pynxtools-xps` for your XPS research data pipeline in [`src/pynxtools-xps/nomad/examples`](../../src/pynxtools_xps/nomad/examples/). These are designed for working with [`NOMAD`](https://nomad-lab.eu/) and its [`NOMAD Remote Tools Hub (NORTH)`](https://nomad-lab.eu/prod/v1/gui/analyze/north). Feel invited to try out the respective tutorial [here](tutorial/nomad.md).
    
    There are also small example files with raw and converted data for using the `pynxtools` dataconverter with the `mpes` reader and the `NXmpes` application definition in the [`examples`](https://github.com/FAIRmat-NFDI/pynxtools-xps/tree/main/examples/) folder.
    
    For this tutorial, we will work with the example data for the VAMAS reader (see [here](../reference/vms.md)). You can run the conversion as
    
    ```shell
    dataconverter \\
        --reader xps \\
        --nxdl NXmpes \\
        regular.vms \\
        eln_data_vms.yaml \\
        -c  config_file.json \\
        --output regular.vms.nxs 
    ```
    
    TODO: add more steps! <!--[The Jupyter notebook is available here](https://github.com/FAIRmat-NFDI/pynxtools-em/blob/main/examples/HowToUseTutorial.ipynb) TODO!-->
    
    **Congrats! You now have a FAIR NeXus file!**
    

    back to top

    Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API