- 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.
Description
Current version of enpt sets the smile coeff to 0:
enpt/enpt/model/metadata/metadata_sensorgeo.py
Lines 175 to 178 in e45f902
I see there're some smile coeffs in the
METADATA.XMLfile:It seems we can apply the smilecorrection by setting these data as
self.nsmile_coef.