Skip to content
Snippets Groups Projects
Closed ENVI band names are not read correctly
  • View options
  • ENVI band names are not read correctly

  • View options
  • Closed Issue created

    If the header looks like this:

    !cat Sentinel-2A__MSI__2018-01-08.hdr
    
    ENVI
    description = {Sentinel-2A__MSI__2018-01-08.bsq}
    samples = 3000
    lines   = 3000
    bands   = 11
    header offset = 0
    file type = ENVI Standard
    data type = 5
    interleave = bsq
    byte order = 0
    map info = {Lambert Azimuthal Equal Area, 1, 1, 5696026.36304165, 1484919.6079648, 10, 10}
    projection info = {11, 6378137, 6356752.314140356, 52, 10, 4321000, 3210000, Lambert Azimuthal Equal Area}
    coordinate system string = {PROJCS["ETRS89_LAEA_Europe",GEOGCS["GCS_ETRS_1989",DATUM["D_ETRS_1989",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["latitude_of_origin",52],PARAMETER["central_meridian",10],PARAMETER["false_easting",4321000],PARAMETER["false_northing",3210000],UNIT["Meter",1]]}
    band names = {
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    8A,
    11,
    12}
    data ignore value = -9999.0

    GeoArray reads:

    gA = GeoArray('Sentinel-2A__MSI__2018-01-08.bsq')
    gA.bandnames
    
    OrderedDict([('B1', 0),
                 ('B2', 1),
                 ('B3', 2),
                 ('B4', 3),
                 ('B5', 4),
                 ('B6', 5),
                 ('B7', 6),
                 ('B8', 7),
                 ('B9', 8),
                 ('B10', 9),
                 ('B11', 10)])

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first