class_docstr: File handler for HSAF grib files.
class_docstr_tok: ["File","handler","for","HSAF","grib","files","."]
docstr: Get the area definition of the datasets in the file.
docstr_tok: ["Get","the","area","definition","of","the","datasets","in","the","file","."]
code: def _get_area_def(self, msg):
      """Get the area definition of the datasets in the file."""
      proj_param = msg.projparams.copy()
  
      Rx = 2 * np.arcsin(1.0 / msg["NrInRadiusOfEarth"]) / msg["dx"]
      Ry = 2 * np.arcsin(1.0 / msg["NrInRadiusOfEarth"]) / msg["dy"]
  
      x_0 = -msg["XpInGridLengths"]
      x_1 = msg["Nx"] - msg["XpInGridLengths"]
      y_0 = (msg["Ny"] - msg["YpInGridLengths"]) * -1
      y_1 = msg["YpInGridLengths"]
  
      min_x = (x_0 * Rx) * proj_param["h"]
      max_x = (x_1 * Rx) * proj_param["h"]
  
      min_y = (y_0 * Ry) * proj_param["h"]
      max_y = (y_1 * Ry) * proj_param["h"]
  
      area_extent = (min_x, min_y, max_x, max_y)
  
      area = geometry.AreaDefinition(
          "hsaf_region",
          "A region from H-SAF",
          "geos",
          proj_param,
          msg["Nx"],
          msg["Ny"],
          area_extent,
      )
  
      return area
  
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 6 for calling the HSAFFileHandler obj's underlying member method code with example usage: obj._get_area_def(msg) and returns: area