You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with some envi cube only providing geometrical information to other data cubes, thus not having band_quantity in the header. I get all the img.bands. empty , but img.bands.band_quantity is Wavelength even if isn't defined.
I suggest to add this metadata1 to the output spectral.SpyFile olny if they are effectively present in the header, or it is bad when we are going to write a new file?
Any way, the assumption for img.bands.band_quantity is in general wrong, in my opinion.
None of the other members of the bands object are being defaulted. It's probably just as simple as removing that line but we need to make sure that none of the plotting functions fail when that attribute is not set. It's probably also worth considering whether band_quantity and band_unit should be defaulted to None or an empty string (currently the case for band_unit).
The function
/io/envi.open
assigns :but this is not always the case.
I'm working with some envi cube only providing geometrical information to other data cubes, thus not having
band_quantity
in the header. I get all theimg.bands.
empty , butimg.bands.band_quantity
isWavelength
even if isn't defined.I suggest to add this metadata1 to the output
spectral.SpyFile
olny if they are effectively present in the header, or it is bad when we are going to write a new file?Any way, the assumption for
img.bands.band_quantity
is in general wrong, in my opinion.1. Metadata list I found:
↩
The text was updated successfully, but these errors were encountered: