mca2edf(1)
β¨ mca2edf β¨
okay bestie, gather round, because this little cutie lives in the PyMca X-Ray Fluorescence Toolkit manual and it's literally here to turn your SPEC files into EDF files π
πΈ NAME πΈ
mca2edf β no cap, its whole job is converting SPEC file format files into EDF format π¦
π SYNOPSIS π
mca2edf [OPTIONS] [FILES]
like⦠that's it. options, then files. iconic.
π DESCRIPTION π
okay so story time π
Back in the day, X-ray maps at the European Synchrotron Radiation Facility were stored as a set of images in ESRF Data Format (EDF). And the way that worked? The image rows were tied to points of a horizontal sample scan, and the image columns were tied to the spectrum channels. so it's giving very structured, very grid-core β¨
This tool lets you take a set of files that the PyMca Toolkit has wrapped as SPEC file format β which means, sadly, they've got no sample position information π β and convert them into European Synchrotron Radiation Facility data format (EDF).
ngl its usefulness is nowdays somehow limited, because recent PyMca developements let you reshapenspectra x nchannelsdatasets inside the tools that actually make use of the shape information (pymcaroitool,pymcapostbatch). so it's a bit of a legacy queen π
π₯ EXAMPLES π₯
mca2edfβ opens a dialog so you can pick your input files, your output directory, and how many spectra go on each horizontal row. very choose-your-own-adventure π«Άmca2edf --outdir=/tmp --mcastep=2 *.mcaβ converts all the.mcafiles in the current directory into a set of EDF files containing two spectra. output goes to/tmpπmca2edf --outdir=/tmp --mcastep=2 --listfile=input_fileβ same as before, but applied to all the files listed ininput_file. every single line ofinput_filehas to contain a valid file name, okay? don't try anything cute π€
π SEE ALSO π
pymcaroitoolpymcapostbatch
that's the whole page bestie, go convert something π
this one came from ESRF, dated March 2012, and it's part of the PyMca X-Ray Fluorescence Toolkit manual. mwah, slay, periodt π β¨
π¦ where this page comes from
- debian bookworm: pymca 5.8.0+dfsg-2 Β· MIT
- debian trixie: pymca 5.9.4-1 Β· MIT
- fedora 43: PyMca 5.9.4-5.fc43 Β· GPL-2.0-or-later
- fedora 44: PyMca 5.9.4-8.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: pymca 5.7.1+dfsg-1build1 Β· MIT
- ubuntu noble: pymca 5.9.2+dfsg-2build1 Β· MIT
- ubuntu questing: pymca 5.9.4-1
- ubuntu resolute: pymca 5.9.4-1build2 Β· MIT
- ubuntu stonking: pymca 5.9.4-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms