Next / Previous / Contents / TCC Help System / NM Tech homepage

53. latLonKey(): Generate the lat-lon key for a given circle

Formats the center of a circle as ddmm-DDDMM.

cbchistlib.py
# - - -   l a t L o n K e y

def latLonKey(circle):
    '''Format a circle's center as ddmm-DDDMM.
    '''
    return ("%s-%s" % (circle.lat, circle.lon))