wrf.pairs_to_latlon¶
- wrf.pairs_to_latlon(pairs)¶
Return latitude and longitude arrays from a sequence of
wrf.CoordPair
objects.This function converts a sequence of
wrf.CoordPair
objects into lists of latitude and longitude points. If the pairs argument is a singlewrf.CoordPair
object, then a single latitude and longitude value is returned.- Parameters:
pairs (
wrf.CoordPair
or sequence) – A singlewrf.CoordPair
or sequence ofwrf.CoordPair
.- Returns:
A tuple of (lat, lon), where lat and lon are single values or lists of values.
- Return type: