class_docstr: IMERG hdf5 reader.
class_docstr_tok: ["IMERG","hdf5","reader","."]
docstr: Create area definition from the gridded lat/lon values.
docstr_tok: ["Create","area","definition","from","the","gridded","lat\/lon","values","."]
code: def get_area_def(self, dsid):
      """Create area definition from the gridded lat/lon values."""
      lats = self.__getitem__("Grid/lat").values
      lons = self.__getitem__("Grid/lon").values
  
      width = lons.shape[0]
      height = lats.shape[0]
  
      lower_left_x = lons[0]
      lower_left_y = lats[0]
  
      upper_right_x = lons[-1]
      upper_right_y = lats[-1]
  
      area_extent = (
          lower_left_x,
          lower_left_y,
          upper_right_x,
          upper_right_y,
      )
      description = "IMERG GPM Equirectangular Projection"
      area_id = "imerg"
      proj_id = "equirectangular"
      proj_dict = {
          "proj": "longlat",
          "datum": "WGS84",
          "ellps": "WGS84",
      }
      area_def = AreaDefinition(
          area_id,
          description,
          proj_id,
          proj_dict,
          width,
          height,
          area_extent,
      )
      return area_def
  
file_path: satpy/satpy/readers/gpm_imerg.py
imports: import logging
  from datetime import datetime
  import dask.array
  import h5py
  import numpy
  from pyresample.geometry import AreaDefinition
  from satpy.readers.hdf5_utils import HDF5FileHandler
label_desc: Use image node_id 5 for calling the Hdf5IMERG obj's underlying member method code with example usage: obj.get_area_def(dsid) and returns: area_def