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

Function get_coord_pairs

src/wrf/util.py:84–101  ·  view source on GitHub ↗

Return a :obj:`tuple` for the variable names of the coordinate pair used for the 2D curvilinear coordinate variable. For example, the 'XLAT' variable will have coordinate variables of ('XLAT', 'XLONG') since the 'XLAT' variable itself is two-dimensional. Args: coord_varnam

(coord_varname)

Source from the content-addressed store, hash-verified

82
83
84def get_coord_pairs(coord_varname):
85 """Return a :obj:`tuple` for the variable names of the coordinate pair used
86 for the 2D curvilinear coordinate variable.
87
88 For example, the 'XLAT' variable will have coordinate variables of
89 ('XLAT', 'XLONG') since the 'XLAT' variable itself is two-dimensional.
90
91 Args:
92
93 coord_varname (:obj:`str`): The coordinate variable name.
94
95 Returns:
96
97 :obj:`bool`: True if the time index is :data:`wrf.ALL_TIMES` or
98 :obj:`None`, otherwise False.
99
100 """
101 return _COORD_PAIR_MAP[coord_varname]
102
103
104def is_multi_time_req(timeidx):

Callers 1

_get_coord_namesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected