MCPcopy Create free account
hub / github.com/pydata/xarray / get_dimensions

Method get_dimensions

xarray/backends/netCDF4_.py:591–592  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

589 return FrozenDict((k, self.ds.getncattr(k)) for k in self.ds.ncattrs())
590
591 def get_dimensions(self):
592 return FrozenDict((k, len(v)) for k, v in self.ds.dimensions.items())
593
594 def get_parent_dimensions(self):
595 return FrozenDict(collect_ancestor_dimensions(self.ds))

Callers

nothing calls this directly

Calls 2

FrozenDictFunction · 0.90
itemsMethod · 0.80

Tested by

no test coverage detected