nmrium icon indicating copy to clipboard operation
nmrium copied to clipboard

1d AutoPhase correction failure

Open nes0zx opened this issue 3 months ago • 8 comments

Hi, I'm using the 1d phase autocorrect function and some of the data phase correction fails, ph0,p1 are abnormally large, can you help to look at it? Thank you.

Image

Here's my data. (There are some other data that are equally anomalous that I can provide if needed)

54.zip

nes0zx avatar Sep 15 '25 08:09 nes0zx

@jobo322

It seems this is the case when we do not have Digitizer Resolution

hamed-musallam avatar Sep 15 '25 09:09 hamed-musallam

@jobo322 Any idea about this issue ?

lpatiny avatar Oct 27 '25 13:10 lpatiny

Hello, for any reason the digital filter is not applied. It is the reason of the additional phase correction needed. Let me check why the digital filter is no removed in this particular case.

Image

jobo322 avatar Oct 27 '25 13:10 jobo322

There is not a bug in this case, the digital filter is not applied because it is not needed, seems the data is recorded in an Avance NEO.

the source of those values of phase correction comes from the procs file.

Image

jobo322 avatar Oct 27 '25 15:10 jobo322

Currently by default we are taking the values for phase correction from the procs file if it exists. @lpatiny should we check if those values reach a good spectrum?

jobo322 avatar Oct 27 '25 15:10 jobo322

There are 2 different issues. One is if we load the FT data and then try to autophase it. The result is not correct at all (a correction of 155 on PH0 would be correct)

Image

If we load the FID and because there is PH0 and PH1 in the proc data we just apply the existing values. The result is expected.

Image

Surprisingly if we load both FT and FID they do not superimpose ...

Image

lpatiny avatar Oct 27 '25 16:10 lpatiny

@nes0zx How was this data generated. It seems there is an issue with the processed data that we preferably load. The width is not correct. Looking at procs file we see

##$SF= 400.340840000000
##$SW_p= 2403.846153795720

So in the file it is defined that it is around 6ppm width (SW_p / SF).

If we load the data from the FID, by default we load the phase indicated in the procs file but it is also wrong.

lpatiny avatar Oct 27 '25 16:10 lpatiny

Thank you very much for your replies. It seems there is something wrong with my data. I'll check the reason.

nes0zx avatar Nov 14 '25 00:11 nes0zx