MCPcopy Index your code
hub / github.com/pydata/xarray / encode_variable

Method encode_variable

xarray/tests/test_conventions.py:578–582  ·  view source on GitHub ↗

encode one variable

(self, var, name=None)

Source from the content-addressed store, hash-verified

576
577class CFEncodedInMemoryStore(WritableCFDataStore, InMemoryDataStore):
578 def encode_variable(self, var, name=None):
579 """encode one variable"""
580 coder = coding.strings.EncodedStringCoder(allows_unicode=True)
581 var = coder.encode(var, name=name)
582 return var
583
584
585@requires_netCDF4

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.95

Tested by

no test coverage detected