def METHOD_NAME():
    """
    Creates a hydrologically correct MODFLOW grid that inlcudes minimum
    DEM elevations for all stream cells and mean elevations everywhere else
    """
    """
    dem = 'DEM'
    grid = 'grid_tmp'
    streams = 'streams_tmp'
    streams_MODFLOW = 'streams_tmp_MODFLOW'
    DEM_MODFLOW = 'DEM_coarse'
    resolution = 500
    """
    options, flags = gscript.parser()
    dem = options["dem"]
    grid = options["grid"]
    streams = options["streams"]
    # resolution = float(options['resolution'])
    streams_MODFLOW = options["streams_modflow"]
    DEM_MODFLOW = options["dem_modflow"]
    # Get number of rows and columns
    colNames = np.array(gscript.vector_db_select(grid, layer=1)["columns"])
    colValues = np.array(gscript.vector_db_select(grid, layer=1)["values"].values())
    cats = colValues[:, colNames == "cat"].astype(int).squeeze()
    rows = colValues[:, colNames == "row"].astype(int).squeeze()
    cols = colValues[:, colNames == "col"].astype(int).squeeze()
    nRows = np.max(rows)
    nCols = np.max(cols)
    gscript.use_temp_region()
    # Set the region to capture only the channel
    g.region(raster=dem)
    v.to_rast(
        input=streams,
        output=streams_MODFLOW,
        use="val",
        value=1.0,
        type="line",
        overwrite=gscript.overwrite(),
        quiet=True,
    )
    r.mapcalc("tmp" + " = " + streams_MODFLOW + " * " + dem, overwrite=True)
    g.rename(raster=("tmp", streams_MODFLOW), overwrite=True, quiet=True)
    g.region(vector=grid, rows=nRows, cols=nCols, quiet=True)
    r.resamp_stats(
        input=streams_MODFLOW,
        output=streams_MODFLOW,
        method="average",
        overwrite=gscript.overwrite(),
        quiet=True,
    )
    r.resamp_stats(
        input=dem,
        output=DEM_MODFLOW,
        method="average",
        overwrite=gscript.overwrite(),
        quiet=True,
    )
    r.patch(
        input=streams_MODFLOW + "," + DEM_MODFLOW,
        output=DEM_MODFLOW,
        overwrite=True,
        quiet=True,
    )