Git Product home page Git Product logo

bruker-opus-to-.dpt-bulk-file-converter's Introduction

Bruker OPUS to .DPT bulk file converter

Bulk file converter for Bruker OPUS Spectroscopy Software

Convert many binary format OPUS files to .dpt (Data Point Table) file format

This script uses the Bruker OPUS Reader package to convert binary OPUS files into python objects, and then creates .dpt files from the ScSm (Single channel spectrum of the sample) data.

How to use:

  1. Create /dpt_template and /raw_data folders in the root folder of this project. (On the same level as main.py)
  2. Manually convert one OPUS file e.g. (XXX.0001) to .dpt format and place it in the /dpt_template directory. (The X-Axis will be extracted from this template to be used as the X-Axis for all bulk-converted files)
  3. Place your binary OPUS files in the /raw_data folder. You can create as many nested subdirectories as you'd like - this same folder structure will be copied and used for the converted files. (e.g. for a binary file placed in /raw_data/scan 1/full scan.0001, the converted .dpt file will be generated and placed in /converted_data/scan 1/full scan.0001.dpt)
  4. Run python -m pip install -r requirements.txt to install dependencies
  5. Run the bulk conversion script with the following command: python main.py

bruker-opus-to-.dpt-bulk-file-converter's People

Contributors

ryanman56 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bruker-opus-to-.dpt-bulk-file-converter's Issues

AB Data Truncated

Hello,

Thank you so much for the code you have provided! I am able to use the read_file() function to get the Opus Data dictionary, but when I go ahead and print opus_data["AB"] to get the list of absorbance values the output is a truncated "list." (Ex. [ 0.2 0.3 ... 0.9 ]). I'm unsure if it's the opus file that truncates the absorbance data when I save the file or if there is something in the source code. Let me know, and thanks for your time!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.