nmrium
nmrium copied to clipboard
Change of filter format towards 2D processing
Currently, the filter apodization options is:
{
"f1": {
"sineBell": {
"apply": true, //false if the shape should be ignored
"shape": {
"kind": "sineBell",
"options": {
"exponent": 2,
"offset": 0 //0.5 for cosine
}
}
},
"exponential": {
"apply": true, //false if the shape should be ignored
"shape": {
"kind": "exponential",
"options": {
"lb": 1
}
}
}
},
"f2": {
"sineBell": {
"apply": true, //false if the shape should be ignored
"shape": {
"kind": "sineBell",
"options": {
"exponent": 2,
"offset": 0.5
}
}
}
}
}
The shapes we are supporting right now are in nmr-processing apodization folder, but we should expose only:
{
sineBell: {
apply: true,
shape: {
kind: 'sineBell',
options: { offset: 0 },
},
},
sineSquare: {
apply: true,
shape: {
kind: 'sineSquare',
options: { offset: 0 },
},
},
exponential: {
apply: true,
shape: {
kind: 'exponential',
options: { lb: 0.1 },
},
},
lorentzToGauss: {
apply: true,
shape: {
kind: 'lorentzToGauss',
options: {
lineBroadening: 0.1,
gaussBroadening: 0.1,
lineBroadeningCenter: 0,
},
},
},
modifiedGaussian: {
apply: true,
shape: {
kind: 'modifiedGaussian',
options: {
lineBroadening: 0.1,
gaussianBroadening: 0.1,
},
},
},
traf: {
apply: true,
shape: {
kind: 'traf',
options: { lb: 0.1 },
},
},
}
I did an simple draw of the possible panel design, where gaussian will make reference to modifiedGaussian
- [x] update the design to have checkbox
- [x] update nmr-processing for the new format
- [x] release nmr-processing
- [ ] ask @hamed-musallam to create the graphical interface