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

Function _name

xarray/convert.py:148–154  ·  view source on GitHub ↗

Mimics `iris_obj.name()` but with different name resolution order. Similar to iris_obj.name() method, but using iris_obj.var_name first to enable roundtripping.

(iris_obj, default="unknown")

Source from the content-addressed store, hash-verified

146
147
148def _name(iris_obj, default="unknown"):
149 """Mimics `iris_obj.name()` but with different name resolution order.
150
151 Similar to iris_obj.name() method, but using iris_obj.var_name first to
152 enable roundtripping.
153 """
154 return iris_obj.var_name or iris_obj.standard_name or iris_obj.long_name or default
155
156
157def from_iris(cube):

Callers 1

from_irisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…