MCPcopy Create free account
hub / github.com/NCAR/wrf-python / is_coordvar

Function is_coordvar

src/wrf/util.py:309–322  ·  view source on GitHub ↗

Returns True if the variable is a coordinate variable. Args: varname (:obj:`str`): The variable name. Returns: :obj:`bool`: True if the variable is a coordinate variable, otherwise False.

(varname)

Source from the content-addressed store, hash-verified

307
308
309def is_coordvar(varname):
310 """Returns True if the variable is a coordinate variable.
311
312 Args:
313
314 varname (:obj:`str`): The variable name.
315
316 Returns:
317
318 :obj:`bool`: True if the variable is a coordinate variable,
319 otherwise False.
320
321 """
322 return varname in _COORD_VARS
323
324
325class IterWrapper(Iterable):

Callers 4

func_wrapperFunction · 0.85
_set_cross_metaFunction · 0.85
_set_line_metaFunction · 0.85
_get_coord_namesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected