Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRB spectral axis needs to fit HSI spectral axis #89

Open
fmh96 opened this issue Mar 24, 2020 · 0 comments
Open

NRB spectral axis needs to fit HSI spectral axis #89

fmh96 opened this issue Mar 24, 2020 · 0 comments

Comments

@fmh96
Copy link

fmh96 commented Mar 24, 2020

Example:
a dataset containing 10x10 spectra, each with spectral axis [960nm ... 1000nm] with 1024 points.
When loading a NRB spectrum with spectral axis [940nm ... 1020nm] with 2048 points (same step size) the error "NRB was the wrong shape" occurs.

Also it seems that crikit applies the HSI data calibration to the NRB data, as long as shape fits. For this example, it is possible to load a NRB spectrum [940nm ... 980nm] with 1024 points, but a message occurs: "Something failed in meta_process: Spectra rep-calib". The NRB spectrum is shown shifted to the HSI spectrum [960nm ... 1000nm].
The rep-calib message also occurs if the NRB spectral axis is exactly the same as the HSI spectral axis.

I don't know if this is an consequence of issue #38

Workaround: Crop the NRB data beforehand to fit the spectral axis of the HSI data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant