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

swh:1:snp:f2a036221b848b423bd011c9c4439510d269a331
  • Code
  • Branches (0)
  • Releases (8)
    • Branches
    • Releases
      • 9
      • 9
      • 8
      • 7
      • 6
      • 5
      • 4
      • 3
      • 2
    • a373a81
    • /
    • FAIRmat-NFDI-pynxtools-xps-53ea2fd
    • /
    • scripts
    • /
    • regenerate_ref_nxs_files.sh
    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
    content badge
    swh:1:cnt:5001b371cfc141b9ee2f0de39596fc1b7ed4077f
    directory badge
    swh:1:dir:c151f7990bacf4db139f1cc9aa4fae445c7042ab
    snapshot badge
    swh:1:snp:f2a036221b848b423bd011c9c4439510d269a331
    release 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 ...
    regenerate_ref_nxs_files.sh
    #!/bin/bash
    READER=xps
    NXDL=NXxps
    
    
    function update_phi_pro_ref {
      cd phi_pro/
      echo "Update .pro (PHI depth_profiling) NeXus reference"
      dataconverter SnO2_10nm_1.pro eln_data_phi_pro.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output phi_pro_ref.nxs  
      cd ..
    }
    
    function update_phi_spe_ref {
      cd phi_spe/
      echo "Update .spe (PHI single spectrum) NeXus reference"
      dataconverter SnO2_10nm.spe eln_data_phi_spe.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output phi_spe_ref.nxs
      cd ..
    }
    
    function update_scienta_ibw_ref {
      cd scienta_ibw/
      echo "Update scienta .ibw NeXus reference"
      dataconverter Ag_000*.ibw eln_data_scienta_ibw.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output scienta_ibw_ref.nxs
      cd ..
    }
    
    function update_scienta_txt_ref {
      cd scienta_txt/
      echo "Update scienta txt NeXus reference"
      dataconverter Ag_000*.txt eln_data_scienta_txt.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output scienta_txt_ref.nxs
      cd ..
    }
    
    function update_specs_sle_ref {
      echo "Update SPECS .sle NeXus reference"
      cd specs_sle/
      echo "Update .sle example"
      dataconverter EX439_S718_Au.sle eln_data_specs_sle.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output specs_sle_ref.nxs
      cd ..
    }
    
    function update_specs_xml_ref {
      cd specs_xml/
      echo "Update SPECS XML NeXus reference"
      dataconverter In-situ_PBTTT_XPS_SPECS.xml eln_data_specs_xml.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output specs_xml_ref.nxs
      cd ..
    }
    
    function update_specs_xy_ref {
      cd specs_xy/
      echo "Update SPECS XY NeXus reference"
      dataconverter MgFe2O4_small.xy eln_data_specs_xy.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output specs_xy_ref.nxs
      cd ..
    }
    
    function update_vms_irregular_ref {
      cd vms_irregular/
      echo "Update irregular VAMAS NeXus reference"
      dataconverter irregular.vms eln_data_vms_irregular.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output vms_irregular_ref.nxs
      cd ..
    }
    
    function update_vms_regular_ref {
      cd vms_regular/
      echo "Update regular VAMAS NeXus reference"
      dataconverter regular.vms eln_data_vms_regular.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output vms_regular_ref.nxs
      cd ..
    }
    
    function update_vms_txt_export_ref {
      cd vms_txt_export/
      echo "Update Vamas text export reference"
      dataconverter vms_txt_export.txt eln_data_vms_txt_export.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output vms_txt_export_ref.nxs
      cd ..
    }
    
    function update_vms_analysis_ref {
      cd vms_analysis/
      echo "Update Vamas data analysis export reference"
      dataconverter FeO* eln.yaml --reader $READER --nxdl $NXDL --ignore-undocumented --output vms_analysis_ref.nxs
      cd ..
    }
    
    project_dir=$(dirname $(dirname $(realpath $0)))
    cd $project_dir/tests/data
    
    update_phi_pro_ref
    update_phi_spe_ref
    update_scienta_ibw_ref
    update_scienta_txt_ref
    update_specs_sle_ref
    update_specs_xml_ref
    update_specs_xy_ref
    update_vms_irregular_ref
    update_vms_regular_ref
    update_vms_txt_export_ref
    update_vms_analysis_ref

    back to top

    Software Heritage — Copyright (C) 2015–2026, 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