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

Function is_time_coord_var

src/wrf/util.py:68–81  ·  view source on GitHub ↗

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

(varname)

Source from the content-addressed store, hash-verified

66
67
68def is_time_coord_var(varname):
69 """Return True if the input variable name is a time coordinate.
70
71 Args:
72
73 varname (:obj:`str`): The input variable name.
74
75 Returns:
76
77 :obj:`bool`: True if the input variable is a time coordinate,
78 otherwise False.
79
80 """
81 return varname in _TIME_COORD_VARS
82
83
84def get_coord_pairs(coord_varname):

Callers 2

_get_coord_namesFunction · 0.85
_extract_varFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected