class_docstr: Generic GRIB file handler.
class_docstr_tok: ["Generic","GRIB","file","handler","."]
code: def _correct_cyl_minmax_xy(
      proj_params, min_lon, min_lat, max_lon, max_lat
  ):
      proj = Proj(**proj_params)
      min_x, min_y = proj(min_lon, min_lat)
      max_x, max_y = proj(max_lon, max_lat)
      if max_x <= min_x:
          # wrap around
          # make 180 longitude the prime meridian
          # assuming we are going from 0 to 360 longitude
          proj_params["pm"] = 180
          proj = Proj(**proj_params)
          # recompute x/y extents with this new projection
          min_x, min_y = proj(min_lon, min_lat)
          max_x, max_y = proj(max_lon, max_lat)
      return proj_params, (min_x, min_y, max_x, max_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 9 for calling the GRIBFileHandler obj's underlying member method code with example usage: obj._correct_cyl_minmax_xy(proj_params, min_lon, min_lat, max_lon, max_lat) and returns: proj_params,  min_x,  min_y,  max_x,  max_y