class_docstr: Reader for GAC and LAC data.
class_docstr_tok: ["Reader","for","GAC","and","LAC","data","."]
docstr: Update dataset attributes.
docstr_tok: ["Update","dataset","attributes","."]
code: def _update_attrs(self, res):
      """Update dataset attributes."""
      for attr in self.reader.meta_data:
          res.attrs[attr] = self.reader.meta_data[attr]
      res.attrs["platform_name"] = self.reader.spacecraft_name
      res.attrs["orbit_number"] = self.filename_info.get(
          "orbit_number", None
      )
      res.attrs["sensor"] = self.sensor
      try:
          res.attrs["orbital_parameters"] = {
              "tle": self.reader.get_tle_lines()
          }
      except (IndexError, RuntimeError):
          pass
  
imports: import logging
  from datetime import datetime, timedelta
  import dask.array
  import numpy
  import pygac.utils
  import xarray
  from pygac.gac_klm import GACKLMReader
  from pygac.gac_pod import GACPODReader
  from pygac.lac_klm import LACKLMReader
  from pygac.lac_pod import LACPODReader
  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 GACLACFile obj's underlying member method code with example usage: obj._update_attrs(res) without return types