class_docstr: File handler for Satpy's CF netCDF files.
docstr: Assign ds_info.
docstr_tok: ["Assign","ds_info","."]
code: def _assign_ds_info(self, var_name, val):
      """Assign ds_info."""
      ds_info = dict(val.attrs)
      ds_info["file_type"] = self.filetype_info["file_type"]
      ds_info["name"] = ds_info["nc_store_name"] = var_name
      if "original_name" in ds_info:
          ds_info["name"] = ds_info["original_name"]
      elif self._numeric_name_prefix and var_name.startswith(
          self._numeric_name_prefix
      ):
          ds_info["name"] = var_name.replace(
              self._numeric_name_prefix, ""
          )
      try:
          ds_info["wavelength"] = WavelengthRange.from_cf(
              ds_info["wavelength"]
          )
      except KeyError:
          pass
      return ds_info
  
imports: import itertools
  import json
  import logging
  import xarray
  from pyresample import AreaDefinition
  from satpy.dataset.dataid import WavelengthRange
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 8 for calling the SatpyCFFileHandler obj's underlying member method code with example usage: obj._assign_ds_info(var_name, val) and returns: ds_info