def get_pixarea(xedges, yedges):
    """Returns the area of each pixel.

    Parameters
    ----------
    xedges : ndarray
        Edges of the x-coordinate grid.
    yedges : ndarray
        Edges of the y-coordinate grid.

    Returns
    -------
    pixarea : float
        The area of each pixel in the cartesian grid.
    """
    pixarea = (xedges[1]-xedges[0])*(yedges[1]-yedges[0])
    return pixarea