radio-astro-tools / spectral-cube

Library for reading and analyzing astrophysical spectral data cubes
http://spectral-cube.rtfd.org
BSD 3-Clause "New" or "Revised" License
95 stars 62 forks source link

Return the "dask" view to visualize how the data is chunked #795

Closed e-koch closed 2 years ago

e-koch commented 2 years ago

The dask diagram of the chunking returned by __repr__ is really useful to view how the data is chunked or needs to be rechunked to optimize operations (e.g. spectral vs spatial operations).

Right now this can only be accessed from cube._data which we don't want users using directly. A simple way to return the diagram with the existing SpectralCube summary would be helpful.

e-koch commented 2 years ago

Added in #797