0

Suppose I open an xarray dataset ds using xarray.open_dataset that contains a 3d array called cube with dimension coordinates x, y, and z. Usually just opening the dataset doesn't load all the data into memory, its lazily retrieved as needed.

Now suppose I do this:

ds.cube.hvplot.line(x='x', groupby=['y','z'])

This creates a line plot of a slice along the x direction, with a widget letting you choose the y,z, position of the slice.

My question is if the resulting DynamicMap lazily loads each 1D array from disk as the widget is manipulated (only one 1d slice is in memory at a time). Or, is the the entire 3D cube is pulled into memory as soon as hvplot is called?

1
  • Context: Running the above line for a large data cube is taking longer than I'd expect, so I wanted to check what's happening. I couldn't find a clear answer perusing hvplot docs. Commented May 5 at 19:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.