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

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
content badge
swh:1:cnt:dcf53a1ed2dfd055d9145a3915642699c8d65ad0

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
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
#!/bin/bash
READER=xps
NXDL=NXxps

function update_cs_example {
  echo "Update coordinate system example"
  cd coordinate_system/
  dataconverter config_vms_cs_fixed.json --reader xps --nxdl NXxps --ignore-undocumented --output vms-cs-fixed.nxs
  cd ..
}

function update_phi_examples {
  echo "Update Phi examples"
  cd phi/
  echo "Update .spe (single spectrum) example"
  dataconverter SnO2_10nm.spe eln_data_phi.yaml --reader $READER --nxdl $NXDL --output SnO2_10nm.spe.nxs --ignore-undocumented
  echo "Update .pro (depth_profiling) example"
  dataconverter SnO2_10nm_1.pro eln_data_phi.yaml --reader $READER --nxdl $NXDL --output SnO2_10nm_1.pro.nxs --ignore-undocumented
  cd ..
}

function update_scienta_examples {
  echo "Update scienta examples"
  cd scienta/
  cd ibw/
  echo "Update .ibw example"
  dataconverter Cu-HHTP_*.ibw eln_data_scienta_ibw.yaml --reader $READER --nxdl $NXDL --output Cu-HHTP.ibw.nxs --ignore-undocumented
  cd ../txt
  echo "Update .txt example"
  dataconverter Cu-HHTP_*.txt eln_data_scienta_txt.yaml --reader $READER --nxdl $NXDL --output Cu-HHTP.txt.nxs --ignore-undocumented
  cd ../..
}

function update_specs_examples {
  echo "Update SPECS examples"
  cd specs/
  cd sle/
  echo "Update .sle example"
  dataconverter EX439_S718_Au.sle eln_data_sle.yaml --reader $READER --nxdl $NXDL --output Au_25_mbar_O2_no_align.nxs --ignore-undocumented
  cd ../xml
  echo "Update .xml example"
  dataconverter In-situ_PBTTT_XPS_SPECS.xml eln_data_xml.yaml --reader $READER --nxdl $NXDL --output In-situ_PBTTT.nxs --ignore-undocumented
  cd ../xy
  echo "Update .xy example"
  dataconverter MgFe2O4.xy eln_data_xy.yaml --reader $READER --nxdl $NXDL --output MgFe2O4.nxs --ignore-undocumented
  cd ../..
}

function update_vms_examples {
  echo "Update VAMAS examples"
  cd vms/
  echo "Update REGULAR file conversion example"
  dataconverter regular.vms eln_data_vms.yaml --reader $READER --nxdl $NXDL --output regular.vms.nxs --ignore-undocumented
  echo "Update REGULAR file conversion example"
  dataconverter irregular.vms eln_data_vms.yaml --reader $READER --nxdl $NXDL --output irregular.vms.nxs --ignore-undocumented
  cd txt_export/
  echo "Update txt export example"
  dataconverter vms_txt_export.txt eln_data_vms_txt_export.yaml --reader $READER --nxdl $NXDL --output vms_txt_export.nxs --ignore-undocumented
  cd ../data_analysis
  echo "Update data analysis example"
  dataconverter FeO* eln.yaml --reader $READER --nxdl $NXDL --output vms_data_analysis.nxs --ignore-undocumented
  cd ../..
}

project_dir=$(dirname $(dirname $(realpath $0)))
cd $project_dir/examples

update_cs_example
update_phi_examples
update_scienta_examples
update_specs_examples
update_vms_examples

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