nmrium icon indicating copy to clipboard operation
nmrium copied to clipboard

Change of filter format towards 2D processing

Open lpatiny opened this issue 1 year ago • 3 comments

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
        }
      }
    }
  }
}

lpatiny avatar Oct 09 '24 06:10 lpatiny

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 },
    },
  },
}

jobo322 avatar Oct 09 '24 16:10 jobo322

I did an simple draw of the possible panel design, where gaussian will make reference to modifiedGaussian

Image

jobo322 avatar Oct 09 '24 16:10 jobo322

  • [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

lpatiny avatar Oct 11 '24 14:10 lpatiny