def geo_cellsize(raster_geo, x_only=False):
    """Return pixel width & pixel height of geo-transform

    Parameters
    ----------
    raster_geo : tuple :class:`gdal.Geotransform` object
    x_only : bool, optional
        If True, only return cell width (the default is False).

    Returns
    -------
        tuple: tuple containing the x or x and y cell size
    """
    if x_only:
        return raster_geo[1]
    else:
        return raster_geo[1], raster_geo[5]
