[gdal-dev] Setting ENVI .hdr band names

Frank Warmerdam warmerdam at pobox.com
Thu Apr 1 16:28:56 EDT 2010


Benjamin Welton wrote:
> Hey all,
> 
>    Im wondering if its possible to set the band names that appear in the 
> ENVI header file instead of having the default band 1, band 2,.... 
> (which looks kinda messy)


Ben,

Reviewing the current envidataset.cpp code, it seems that either band_names
and wavelength fields are used for the band descriptions if they are available.
Are you using GDAL 1.7+?  If so, perhaps you could file a ticket on the
issue and attach your envi header file.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list