Skip to content

wrong assignment of bands.band_quantity in envi.open #46

@kidpixo

Description

@kidpixo

The function /io/envi.open assigns :

img.bands.band_quantity = "Wavelength"

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 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.


1. Metadata list I found:

img.bands.band_quantity
img.bands.bandwidth_stdevs
img.bands.centers
img.bands.band_unit       
img.bands.bandwidths      
img.bands.centers_stdevs 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions