Giter Site home page Giter Site logo

Failed to load Bruker Data about nmrglue HOT 2 OPEN

NightflyerX avatar NightflyerX commented on July 17, 2024
Failed to load Bruker Data

from nmrglue.

Comments (2)

kaustubhmote avatar kaustubhmote commented on July 17, 2024

Apart from the correct phasing, and optionally using a different way remove the digital filter, I find that I can read and process the spectrum correctly using nearly the same script as you.

dic, data = ng.bruker.read("./")
datap = ng.proc_base.em(data, lb=1/dic["acqus"]["SW_h"])
datap = ng.proc_base.fft(data)
datap = ng.bruker.remove_digital_filter(dic, datap, post_proc=True)
datap = ng.proc_autophase.autops(datap, fn='acme', disp=False)
datap = ng.proc_base.rev(datap)
udic = ng.bruker.guess_udic(dic, datap, strip_fake=True)
uc = {i: ng.fileiobase.uc_from_udic(udic, dim=i) for i in range(udic["ndim"])}

fig, ax = plt.subplots(figsize=(8, 2))
ax.plot(uc[0].ppm_scale(), datap.real, linewidth=0.5)
ax.set_ylim(-1e7, 1e8)
ax.set_xlim(4.1, 1.0)
ax.set_title("zoomed in to better see the small peaks", fontsize=12)
plt.show()

output

from nmrglue.

NightflyerX avatar NightflyerX commented on July 17, 2024

Wow, thank you so much :) It works like a charm. Adding the integrals like in the examples was still a pain though - but works now.

from nmrglue.

Related Issues (20)

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.