class_docstr: File handler for HSAF grib files.
class_docstr_tok: ["File","handler","for","HSAF","grib","files","."]
docstr: Init the file handler.
docstr_tok: ["Init","the","file","handler","."]
code: def __init__(self, filename, filename_info, filetype_info):
      """Init the file handler."""
      super(HSAFFileHandler, self).__init__(
          filename, filename_info, filetype_info
      )
  
      self._msg_datasets = {}
      self._start_time = None
      self._end_time = None
      try:
          with pygrib.open(self.filename) as grib_file:
              first_msg = grib_file.message(1)
              analysis_time = self._get_datetime(first_msg)
              self._analysis_time = analysis_time
              self.metadata = self.get_metadata(first_msg)
  
      except (RuntimeError, KeyError):
          raise IOError(
              "Unknown GRIB file format: {}".format(self.filename)
          )
  
file_path: satpy/satpy/readers/hsaf_grib.py
imports: import logging
  from datetime import datetime, timedelta
  import dask.array
  import numpy
  import pygrib
  import xarray
  from pyresample import geometry
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 1 to create a new HSAFFileHandler object from inherited base classes: BaseFileHandler with example: obj = HSAFFileHandler(filename, filename_info, filetype_info)