class_docstr: A base class for the CLAVRx File Handlers.
class_docstr_tok: ["A","base","class","for","the","CLAVRx","File","Handlers","."]
docstr: Get metadata.
docstr_tok: ["Get","metadata","."]
code: def get_metadata(
      sensor: str, platform: str, attrs: dict, ds_info: dict
  ) -> dict:
      """Get metadata."""
      attr_info = {}
      attr_info.update(attrs)
      attr_info.update(ds_info)
  
      flag_meanings = attr_info.get("flag_meanings", None)
      if not attr_info.get("SCALED", 1) and not flag_meanings:
          attr_info["flag_meanings"] = "<flag_meanings_unknown>"
          attr_info.setdefault("flag_values", [None])
      elif not attr_info.get("SCALED", 1) and isinstance(
          flag_meanings, str
      ):
          attr_info["flag_meanings"] = flag_meanings.split("  ")
      u = attr_info.get("units")
      if u in CF_UNITS:
          # CF compliance
          attr_info["units"] = CF_UNITS[u]
          if u.lower() == "none":
              attr_info["units"] = "1"
      attr_info["sensor"] = sensor
      attr_info["platform_name"] = platform
      rps = _get_rows_per_scan(sensor)
      if rps:
          attr_info["rows_per_scan"] = rps
      attr_info["reader"] = "clavrx"
  
      return attr_info
  
imports: import logging
  import os
  from glob import glob
  from typing import Optional, Union
  import netCDF4
  import numpy
  import xarray
  from pyresample import geometry
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.readers.hdf4_utils import SDS, HDF4FileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 8 for calling the _CLAVRxHelper obj's underlying member method code with example usage: obj.get_metadata(sensor, platform, attrs, ds_info) and returns: attr_info