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 offsets from the metadata.
docstr_tok: ["Get","the","band","offsets","from","the","metadata","."]
code: def band_offsets(self):
      """Get the band offsets from the metadata."""
      offsets = self.root.find(".//Radiometric_Offset_List")
      if offsets is not None:
          band_offsets = {
              int(off.attrib["band_id"]): float(off.text)
              for off in offsets
          }
      else:
          band_offsets = {}
      return band_offsets
  
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 6 for calling the SAFEMSIMDXML obj's underlying member method code with example usage: obj.band_offsets() and returns: band_offsets