wrf.CoordPair¶
-
class
wrf.CoordPair(x=None, y=None, lat=None, lon=None)¶ A class that stores (x, y) and/or (latitude, longitude) coordinate pairs.
Most math operators are supplied. When the other operand is a
CoordPair, the operation is performed with the same attribute. When a math operation uses a scalar as the other operand, the operation is applied across all attributes.Methods
__init__([x, y, lat, lon])Initialize a CoordPairobject.latlon_str([fmt])Return a strfor the (latitude, longitude) coordinate pair.xy_str([fmt])Return a strfor the (x,y) coordinate pair.