Closed morf1102 closed 1 month ago
We can only find out what the problem is with a minimal, reproducible example (MRE).
Sorry for the delay; for some reason I encountered some difficulties in recreating the error with a MRE, but here's what I came up with:
import hvplot.xarray
import numpy as np
import pandas as pd
import xarray as xr
TT = np.random.randn(100, 100, 24)
lon = list(range(0, 100))
lat = list(range(0, 100))
time = pd.date_range("2023-07-05", periods=24, freq="1H")
ds = xr.Dataset(
data_vars=dict(
TT=(["lon", "lat", "time"], TT),
),
coords=dict(lon=(["lon"], lon), lat=(["lat"], lat), time=(["time"], time)),
).chunk()
ds = ds.resample(time="3H").max()
ds.isel(time=0).hvplot.quadmesh(
geo=True,
project=True,
rasterize=True,
dynamic=True,
)
I don't get the error what are your versions of HoloViews and Datashader?
Holoviews : 1.16.1 Datashader: 0.15.0
Those seem like recent enough versions. Where do you see the error in Jupyter notebook / Jupyter lab / VScode?
Jupyter lab
I cannot reproduce this in holoviews==1.19.1 and datashader==0.16.3 and geoviews==1.12.0
Going to close this for now, but please re-open if upgrading doesn't work for you.
Description:
I encountered an issue when trying to visualize a resampled xarray dataset using
hvplot.quadmesh
in combination withgeoviews
. The goal was to use thexarray.Dataset.resample
on my dataset to get the maximum values for each 12-hour intervals and then plot each variable on a map. However, this operation results in the following error:Additional information:
project=True
System Information:
Please let me know if any further information is required.