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 physical gains dictionary.
docstr_tok: ["Get","the","physical","gains","dictionary","."]
code: def physical_gains(self):
      """Get the physical gains dictionary."""
      physical_gains = {
          int(elt.attrib["bandId"]): float(elt.text)
          for elt in self.root.findall(".//PHYSICAL_GAINS")
      }
      return physical_gains
  
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 12 for calling the SAFEMSIMDXML obj's underlying member method code with example usage: obj.physical_gains() and returns: physical_gains