WDF-EXPORT(1)

πŸ“¦ version 0.1.16, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– WDF-EXPORT(1) πŸ’–

okay bestie, welcome to the User Commands section of the manual β€” this one's all about wdf-export, and I'm gonna walk you through it like we're texting at 2am πŸ¦‹


🌸 NAME 🌸

wdf-export β€” literally just wdf-export, that's the whole name, slay πŸ’…


✨ DESCRIPTION ✨

so here's the vibe:

usage: wdf-export [-h] [-o OUTPUT] [-f FORMAT] [-p PRECISION] wdf_file

it's a simple script that converts Renishaw wdf spectroscopy files into plain text files. no cap, that's it, that's the whole job πŸŽ€

the first 3 lines in the header are, in order:

  1. brief information of measurement πŸ“‹
  2. positions of spectra points, if exist πŸ“
  3. wavenumber and indices of points 🌊

🫢 positional arguments 🫢

  • wdf_file β€” the Renishaw wdf you're feeding in as input. give her the file, bestie πŸ“

πŸ‘‘ options πŸ‘‘

  • -h, --help β€” shows this help message and exits. the classic "wait what do I do" button, we've all been there πŸ™ˆ
  • -o, --output OUTPUT β€” the name of the exported plain text file. if you don't specify one, it just uses the base name of the .wdf file. lazy girl coding, honestly iconic ⭐
  • -f, --format FORMAT β€” the format of the exported file. the valid values are:
    • .csv β€” comma-separated πŸ“
    • .txt β€” space-separated ✨

if you don't specify it, it guesses from the output file name.

⚠️ Note: the -f option is ignored when the output file name already has an extension. so don't come crying to me when your format flag does nothing, she said what she said πŸ’€
  • -p, --precision PRECISION β€” the precision of the exported data. use a printf-compatible format such as %2.4f. numbers girlies, this one's for you πŸ”₯

that's the whole page, bestie!! go forth and convert your spectra πŸ’œ

πŸ¦‹ sign-off time: this was wdf-export 0.1.16, from March 2025. mwah, take care of her πŸŒˆπŸ’–


πŸ“¦ where this page comes from