class_docstr: Handle CMSAF CLAAS-2 files.
docstr: Get metadata for variable.
  
  Return metadata dictionary for variable ``var``.
docstr_tok: ["Get","metadata","for","variable",".","Return","metadata","dictionary","for","variable","``","var","``","."]
code: def _get_dsinfo(self, var):
      """Get metadata for variable.
  
      Return metadata dictionary for variable ``var``.
      """
      ds_info = {
          "name": var,
          "file_type": self.filetype_info["file_type"],
      }
      # attributes for this data variable
      attrs = {
          k[len(f"{k:s}/attr") + 1]: v
          for (k, v) in self.file_content.items()
          if k.startswith(f"{k:s}/attr")
      }
      # we don't need "special" attributes in our metadata here
      for unkey in {"_FillValue", "add_offset", "scale_factor"}:
          attrs.pop(unkey, None)
      return ds_info
  
file_path: satpy/satpy/readers/cmsaf_claas2.py
imports: import datetime
  from satpy.resample import get_area_def
  from .netcdf_utils import NetCDF4FileHandler
label_desc: Use image node_id 5 for calling the CLAAS2 obj's underlying member method code with example usage: obj._get_dsinfo(var) and returns: ds_info