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 single wrf.CoordPair object, then a single latitude and longitude value is returned.

Parameters:pairs (wrf.CoordPair or sequence) – A single wrf.CoordPair or sequence of wrf.CoordPair.
Returns:A tuple of (lat, lon), where lat and lon are single values or lists of values.
Return type:tuple