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)
| 3919 | |
| 3920 | |
| 3921 | def 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 |
no outgoing calls
no test coverage detected