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

Method decode

xarray/coding/variables.py:617–623  ·  view source on GitHub ↗
(self, variable: Variable, name: T_Name = None)

Source from the content-addressed store, hash-verified

615 raise NotImplementedError()
616
617 def decode(self, variable: Variable, name: T_Name = None) -> Variable:
618 dims, data, attrs, encoding = unpack_for_decoding(variable)
619 if not data.dtype.isnative:
620 data = NativeEndiannessArray(data)
621 return Variable(dims, data, attrs, encoding, fastpath=True)
622 else:
623 return variable
624
625
626class NonStringCoder(VariableCoder):

Callers

nothing calls this directly

Calls 3

unpack_for_decodingFunction · 0.90
VariableClass · 0.90

Tested by

no test coverage detected