Skip to content

Apply smile effect correction #5

@zxdawn

Description

@zxdawn
  • enpt version: 0.19.2
  • Python version: 3.10.10
  • Operating System: Mac OS M2

Description

Current version of enpt sets the smile coeff to 0:

# FIXME hardcoded - DLR does not provide any smile information
# => smile coefficients are set to zero until we have valid ones
self.nsmile_coef = 5
self.smile_coef = np.zeros((self.nwvl, self.nsmile_coef), dtype=float)

I see there're some smile coeffs in the METADATA.XML file:

    <smileCorrection applied="no" parametrization="polynomial">
      <VNIR>
        <bandID number="1">
          <wavelength unit="nm">418.42</wavelength>
          <coeff0 unit="nm">-2.17157E-01</coeff0>
          <coeff1 unit="nm">4.65630E-04</coeff1>
          <coeff2 unit="nm">-1.23312E-08</coeff2>
          <coeff3 unit="nm">-4.46007E-11</coeff3>
          <coeff4 unit="nm">-7.96608E-16</coeff4>
        </bandID>
        <bandID number="2">

It seems we can apply the smilecorrection by setting these data as self.nsmile_coef.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions