I'm trying to plot an xarray grid using the Geoviews Dataset class. The data has shape: (12,1300,1936) with coordinates (months,Longitude, Latitude).
The instantiation takes way too much time (almost 7 hours in an i5 32GB Ram computer). Ploting a smaller dataset works (taking some seconds).
This is the string representation of the xarray (named xmam):
<xarray.DataArray (MeanTemp Month:: 12, Latitude: 1300, Longitude: 1936)>
array([[[ nan, nan, ..., nan, nan],
[ 14., 14., ..., nan, nan],
...,
[ nan, nan, ..., nan, nan],
[ nan, nan, ..., nan, nan]],
[[ nan, nan, ..., nan, nan],
[ 16., 16., ..., nan, nan],
...,
[ nan, nan, ..., nan, nan],
[ nan, nan, ..., nan, nan]],
...,
[[ nan, nan, ..., nan, nan],
[ 17., 17., ..., nan, nan],
...,
[ nan, nan, ..., nan, nan],
[ nan, nan, ..., nan, nan]],
[[ nan, nan, ..., nan, nan],
[ 14., 14., ..., nan, nan],
...,
[ nan, nan, ..., nan, nan],
[ nan, nan, ..., nan, nan]]], dtype=float32)
Coordinates:
* MeanTemp Month: (MeanTemp Month:) |S9 'January' 'February' ... 'December'
* Latitude (Latitude) float64 25.57 25.56 25.55 ... 14.76 14.75 14.74
* Longitude (Longitude) float64 -103.6 -103.6 -103.6 ... -87.49 -87.48
This is how I'm instantiating the Geoviews Dataset
gvds = gv.Dataset(xmam,kdims=['Latitude', 'Longitude'],vdims=['MeanTemp Month:'],dynamic=True)
I tried with and without the
dynamic
parameter giving similar results.
What do you think it's the problem ?
Note that Datashader
has no role yet because I'm just creating the object, not even plotting it!