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

Function is_latlon_pair

src/wrf/util.py:3921–3936  ·  view source on GitHub ↗

Return True if the :class:`wrf.CoordPair` is a lat/lon pair Args: pair (:class:`wrf.CoordPair`): A single :class:`wrf.CoordPair` object. Returns: :obj:`bool`: True if the pair is a lat/lon pair.

(pair)

Source from the content-addressed store, hash-verified

3919
3920
3921def is_latlon_pair(pair):
3922 """Return True if the :class:`wrf.CoordPair` is a lat/lon pair
3923
3924 Args:
3925
3926 pair (:class:`wrf.CoordPair`): A single :class:`wrf.CoordPair` object.
3927
3928 Returns:
3929
3930 :obj:`bool`: True if the pair is a lat/lon pair.
3931
3932 """
3933 if pair is not None:
3934 return (pair.lat is not None and pair.lon is not None)
3935 else:
3936 return False

Callers 4

_set_cross_metaFunction · 0.85
_set_line_metaFunction · 0.85
vertcrossFunction · 0.85
interplineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected