class_docstr: File handle for sentinel 2 safe XML generic metadata.
class_docstr_tok: ["File","handle","for","sentinel","2","safe","XML","generic","metadata","."]
docstr: Calibrate *data* to radiance using the radiometric information for the metadata.
docstr_tok: ["Calibrate","*","data","*","to","radiance","using","the","radiometric","information","for","the","metadata","."]
code: def calibrate_to_radiances(self, data, band_name):
      """Calibrate *data* to radiance using the radiometric information for the metadata."""
      physical_gain = self.physical_gain(band_name)
      data = self._sanitize_data(data)
      return (data + self.band_offset(band_name)) / physical_gain
  
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 10 for calling the SAFEMSIMDXML obj's underlying member method code with example usage: obj.calibrate_to_radiances(data, band_name) and returns: unknown