-
Notifications
You must be signed in to change notification settings - Fork 0
Description
it could also be very useful to have the band center wavelengths stored in the dataset attributes, e.g. as
enmap_dataset.attrs["wavelengths"](or something similar, not sure what the best convention would be).The metadata file already contains
<wavelengthCenterOfBand>for every band. In principle, the wavelengths are always the same, but I think sometimes they can vary slightly depending on calibration, version, etc. It would be nice to have them included in the dataset attributes as a list, so users can be sure they are working with the exact values from the product.
Originally posted by @remoteJorge in #3
Certainly it would be no problem to extract those wavelengths from METADATA.XML and add them as attribute values. Additionally, we could add them as a an alternative co-ordinate set for the band dimension, which would enable things like slice selection/subsetting directly with wavelength ranges. @remoteJorge Do you think that could be useful?