Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G geoarray
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Daniel Scheffler
  • geoarray
  • Issues
  • #26
Closed
Open
Issue created Oct 09, 2019 by Daniel Scheffler@danschefOwner

ENVI band names are not read correctly

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)])
Assignee
Assign to
Time tracking