class_docstr: File handle for sentinel 2 safe XML generic metadata.
class_docstr_tok: ["File","handle","for","sentinel","2","safe","XML","generic","metadata","."]
docstr: Get the band indices from the metadata.
docstr_tok: ["Get","the","band","indices","from","the","metadata","."]
code: def band_indices(self):
      """Get the band indices from the metadata."""
      spectral_info = self.root.findall(".//Spectral_Information")
      band_indices = {
          spec.attrib["physicalBand"]: int(spec.attrib["bandId"])
          for spec in spectral_info
      }
      return band_indices
  
imports: import logging
  import dask.array
  import defusedxml.ElementTree
  import numpy
  import xarray
  from pyresample import geometry
  from satpy._compat import cached_property
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 5 for calling the SAFEMSIMDXML obj's underlying member method code with example usage: obj.band_indices() and returns: band_indices