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

Method encode_variable

xarray/backends/h5netcdf_.py:366–370  ·  view source on GitHub ↗
(self, variable, name=None)

Source from the content-addressed store, hash-verified

364 self.ds.attrs[key] = value
365
366 def encode_variable(self, variable, name=None):
367 if self.format == "NETCDF4_CLASSIC":
368 return encode_nc3_variable(variable, name=name)
369 else:
370 return _encode_nc4_variable(variable, name=name)
371
372 def prepare_variable(
373 self, name, variable, check_encoding=False, unlimited_dims=None

Callers

nothing calls this directly

Calls 2

encode_nc3_variableFunction · 0.90
_encode_nc4_variableFunction · 0.90

Tested by

no test coverage detected