plantcv
plantcv copied to clipboard
Spectral data written with plantcv function is missing required header fields
Describe the bug
Spectral data created using plantcv.hyperspectral.write_data
might be missing some required fields. This might make the data incompatible with other packages. According to this website, the required fields are:
- [x] bands
- [ ] byte order
- [x] data type
- [ ] file type
- [ ] header offset
- [x] interleave
- [x] lines
- [x] samples
The checked ones are covered by PlantCV.
I tried to load a file using spectral python and it did not work until I manually added byte order = 0
to the header. It did not require file type
or header offset
.
To Reproduce Try to load a PlantCV created spectral file using spectral python.
Expected behavior Be compatible with other packages
Local environment (please complete the following information):
- OS: Linux
- Environment: conda
- PlantCV Version 4.x branch
Additional context