def METHOD_NAME(xrgrid):
    """
    Run grdview using grid input that is not an xarray.DataArray or file.
    """
    dataset = xrgrid.to_dataset()  # convert xarray.DataArray to xarray.Dataset
    assert data_kind(dataset) == "matrix"
    fig = Figure()
    with pytest.raises(GMTInvalidInput):
        fig.grdview(grid=dataset)