MCPcopy
hub / github.com/pydata/xarray / chunksizes

Method chunksizes

xarray/core/dataarray.py:1387–1405  ·  view source on GitHub ↗

Mapping from dimension names to block lengths for this dataarray's data. If this dataarray does not contain chunked arrays, the mapping will be empty. Cannot be modified directly, but can be modified by calling .chunk(). Differs from DataArray.chunks because it re

(self)

Source from the content-addressed store, hash-verified

1385
1386 @property
1387 def chunksizes(self) -> Mapping[Any, tuple[int, ...]]:
1388 """
1389 Mapping from dimension names to block lengths for this dataarray's data.
1390
1391 If this dataarray does not contain chunked arrays, the mapping will be empty.
1392
1393 Cannot be modified directly, but can be modified by calling .chunk().
1394
1395 Differs from DataArray.chunks because it returns a mapping of dimensions to chunk shapes
1396 instead of a tuple of chunk shapes.
1397
1398 See Also
1399 --------
1400 DataArray.chunk
1401 DataArray.chunks
1402 xarray.unify_chunks
1403 """
1404 all_variables = [self.variable] + [c.variable for c in self.coords.values()]
1405 return get_chunksizes(all_variables)
1406
1407 def chunk(
1408 self,

Callers

nothing calls this directly

Calls 2

get_chunksizesFunction · 0.90
valuesMethod · 0.45

Tested by

no test coverage detected