Skip to content

Releases

raman2origin v1.0.0

Choose a tag to compare

@Breeze136 Breeze136 released this 19 Jul 17:33

raman2origin v1.0.0

Raman 光谱 txt 数据快速合并工具:扫描/挑选 txt → waterfall 堆叠预览 → 一键合并成 Origin 可直接导入的多列表格,并同存预览 PNG。首个正式发布。

A fast merger for Raman spectra txt files: pick your files → waterfall preview → one-click merge into an Origin-ready multi-column table, with a preview PNG saved alongside. First official release.


下载 Download

  • Windows 10/11(64 位):下载下方 raman2origin-v1.0.0-win64.exe(单文件,约 29 MB,免安装、免 Python 环境,双击即用)
    • Download raman2origin-v1.0.0-win64.exe below — single portable file, no installation or Python required
  • 源码运行:pip install -r requirements.txt(numpy + matplotlib),然后 python raman_gui.py(GUI)或 python raman_merge.py -h(命令行)

主要功能 Features

  • 文件挑选灵活:浏览对话框单选/多选都是追加(可跨文件夹分批挑选,按路径自动去重);要整个文件夹就在对话框里 Ctrl+A 全选;「全部移除」一键重来
    • Flexible picking: single/multiple selections are always appended (batch across folders, auto dedup by path); Ctrl+A in the dialog for a whole folder; "Remove all" to start over
  • waterfall 堆叠预览:偏移 auto/0/10%–200% 下拉即选即绘,任意输入框回车即时刷新;X/Y 范围、横长比可调(Y 默认 auto 跟随曲线数)
    • Waterfall preview: offset auto/0/10–200%, redraw on Enter; adjustable X/Y range and aspect ratio
  • 坐标轴标题自定义:X/Y 标题可改(支持 $...$ 上下标),留空回退默认并记忆
    • Custom axis titles with $...$ super/subscript support, remembered across sessions
  • 长样品名自适应:图例名字再长也不会被裁掉,画布自动加宽
    • Long sample names never get clipped — the canvas widens automatically
  • 中英双语界面:右上角一键切换
    • Chinese/English UI toggle in one click
  • Origin 友好输出:tab 分隔多列表格(X 网格不一致的曲线自动作 xn + 样品名 列对追加);合并时同存预览 PNG;保存位置可选数据文件夹或指定文件夹;重名自动 _1/_2 编号
    • Origin-ready tab-delimited table (mismatched-X curves appended as xn + name column pairs); preview PNG saved alongside; duplicate names auto-numbered
  • 命令行批处理:python raman_merge.py -i 数据文件夹 -o 输出.txt --preview --offset 110% --xlim 50 1000 --xlabel "Raman shift (cm$^{-1}$)"
    • CLI for batch processing with the same parsing/merge/preview pipeline
  • 健壮解析:表头行数可变、小数逗号、降序 X 自动翻转、头部异常点修剪(只剪头不剪尾)
    • Robust parsing: variable header length, decimal commas, descending-X auto-flip, head-outlier trimming (never trims the tail)

快速上手 Quick start

  1. 双击 raman2origin-v1.0.0-win64.exe(或 python raman_gui.py)
  2. 「浏览…」挑选 txt(单选/多选/Ctrl+A 全选,跨文件夹随意组合)
  3. 勾选要合并的曲线,调偏移/范围/标题
  4. 「预览」看效果 →「保存」得到 raman_merge.txt + 预览 PNG
  5. 拖进 Origin,用 Stack Lines by Y Offsets 画堆叠图

校验 Checksums

文件 MD5
raman2origin-v1.0.0-win64.exe 50201606cc42a2bd32056d92b1f3b711

源码指纹 Source fingerprints:raman_gui.py 795 行 md5 7056d957b8efb9b43a0a1023e8b9eaa6;raman_merge.py 299 行 md5 8021ee3d19286096091415306e3be3e3

备注 Notes

  • exe 图标为 tk 羽毛笔;UPX 压缩(29 MB);Windows 版本资源 ProductVersion v1.0.0
  • 配置文件存于 ~/.raman_gui.json(文件夹/输出名/坐标标题/语言等;偏移量与 Y 范围每次启动回默认)
  • 许可:MIT;引用见 CITATION.cff(Zenodo DOI 待回填)