class_docstr: Generic GRIB file handler.
class_docstr_tok: ["Generic","GRIB","file","handler","."]
code: def _get_extents(min_x, min_y, max_x, max_y, shape):
      half_x = abs((max_x - min_x) / (shape[1] - 1)) / 2.0
      half_y = abs((max_y - min_y) / (shape[0] - 1)) / 2.0
      return (
          min_x - half_x,
          min_y - half_y,
          max_x + half_x,
          max_y + half_y,
      )
  
imports: import logging
  from datetime import datetime
  import dask.array
  import numpy
  import pygrib
  import xarray
  from pyproj import Proj
  from pyresample import geometry
  from satpy.dataset import DataQuery
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 12 for calling the GRIBFileHandler obj's underlying member method code with example usage: obj._get_extents(min_x, min_y, max_x, max_y, shape) and returns: unknown,  unknown,  unknown,  unknown