Closed deepanshs closed 10 months ago
The assumption that the carrier frequency is at the center of the spectrum is the only way to encode both wRF and wref into o and b.
Correct absolute coordinates require $\Delta oo = - \Delta b$. This appears to be true regardless of the complex_fft flag state.
Equations
The CSDM
LinearDimension
defines coordinates ascoordinates
= $\Delta x(J_k - Z_k) + b_k$, where $J_k = [0, 1, ... N_k -1]$. When complex_fft=False, $Z_k$ = 0. When complex fft=True, $Z_k = N_k/2$ for even $N_k$ else $(N_k-1)/2$coordinates_offset
= $b_k$increment
= $\Delta x_k$count
= NFor NMR datasets, here are two cases---when origin_offset is defined at the receiver frequency, and origin_offset is defined at the reference frequency.
complex_fft
= Truecomplex_fft
= False, $N$ is oddcomplex_fft
= False, $N$ is even, $\Delta x$ > 0complex_fft
= False, $N$ is even, $\Delta x$ < 0The conversion from Hz -> ppm is
coordinates
/ ${w_\text{ref}}$. The difference is that when originoffset is ${w\text{RF}}$, the value of ${w_\text{ref}}$ depends on how the LinearDimension is defined.What happens to the origin offset for a data subset?
If the origin offset is $w\text{ref}$, we retain both frequency and ppm dimension scale for the subset data but lose the information on $w\text{RF}$. However, does $w_\text{RF}$ has meaning for a data subset?
If the origin offset is $w\text{RF}$, we lose the information on $w\text{ref}$. Therefore, the subset data can only be represented in frequency dimension, not dimensionless ppm scale. We retain $w_\text{RF}$, which again seems meaning less for a data subset.
Cases
1 When dataset is the full spectrum
absolute_coordinates
coordinates
ppm_scale
(using above equations)2 Subset of the full spectrum (keeping the
origin_offset
the same as the original dataset)absolute_coordinates
coordinates
ppm_scale
(using above equations)3 Subset of the full spectrum (updating the
origin_offset
to maintain the same ppm scale)absolute_coordinates
coordinates
ppm_scale
(using above equations)Scenarios
origin_offset
is $w_\text{RF}$. Case 1 and Case 2(subset has the sameorigin_offset
as the original)Test file scenario-1.zip Summary
origin_offset
is always $w\text{RF}$. The coordinates in Hz are known. Since there is no evidence if the csdm object is a complete or a subset, $w\text{ref}$ and therefore the coordinates in ppm are presumed incorrect.origin_offset
is $w_\text{ref}$. Case 1 and Case 2(subset has the sameorigin_offset
as the original)Test file scenario-2.zip Summary
origin_offset
is always $w\text{ref}$. The coordinates in Hz and ppm are always known. Since there is no evidence if the csdm object is a complete or a subset, the $w\text{RF}$ is presumed incorrect.