Module Expr Str Assign NameStore ListLoad Str Str Str Str ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd NameStore BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AugAssignAdd NameStore BinOpMult SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad Assign NameStore NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call NameLoad ListComp TupleLoad Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return BinOpDiv AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body AugAssignSub AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword BinOpMult AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call NameLoad keyword BinOpAdd Str AttributeLoad NameLoad attr keyword BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body AugAssignMult AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMult NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword BinOpDiv AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body AugAssignDiv AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad ListComp TupleLoad BinOpMod Str NameLoad BinOpPow NameLoad Num comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad ListComp TupleLoad NameLoad BinOpMod Str NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad ListComp TupleLoad Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return BinOpDiv AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Raise Call NameLoad BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body AugAssignSub AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword BinOpMult AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body AugAssignMult AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMult NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword BinOpDiv AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body AugAssignDiv AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore NameLoad Assign NameStore NameLoad
N/A N/A 
Distance and Area objects to allow for sensible and convienient calculation
and conversions.

Authors: Robert Coup, Justin Bronn

Inspired by GeoPy (http://exogen.case.edu/projects/geopy/)
and Geoff Biggs' PhD work on dimensioned units for robotics.
 N/A __all__ N/A A Area D Distance decimal Decimal MeasureBase N/A object N/A default_units N/A N/A self kwargs N/A N/A N/A 
        Return the unit value and the default units specified
        from the given keyword arguments dictionary.
         N/A val 0.0 N/A N/A unit value N/A N/A kwargs iteritems N/A N/A N/A N/A isinstance value float N/A N/A value N/A float value N/A N/A unit N/A self UNITS N/A N/A val N/A N/A N/A self UNITS N/A unit value N/A default_unit unit N/A N/A N/A unit N/A self ALIAS N/A N/A u N/A N/A self ALIAS N/A unit N/A val N/A N/A N/A self UNITS N/A u value N/A default_unit u N/A N/A lower N/A N/A unit lower N/A N/A lower N/A self UNITS N/A N/A val N/A N/A N/A self UNITS N/A lower value N/A default_unit lower N/A N/A N/A lower N/A self LALIAS N/A N/A u N/A N/A self LALIAS N/A lower N/A val N/A N/A N/A self UNITS N/A u value N/A default_unit u N/A N/A N/A AttributeError N/A Unknown unit type: %s unit N/A N/A val default_unit N/A unit_attname N/A N/A cls unit_str N/A N/A N/A 
        Retrieves the unit attribute name for the given unit string.
        For example, if the given unit string is 'metre', 'm' would be returned.
        An exception is raised if an attribute cannot be found.
         N/A lower N/A N/A unit_str lower N/A N/A unit_str N/A cls UNITS N/A N/A unit_str N/A N/A N/A lower N/A cls UNITS N/A N/A lower N/A N/A N/A lower N/A cls LALIAS N/A N/A N/A N/A cls LALIAS N/A lower N/A N/A N/A Exception N/A Could not find a unit keyword associated with "%s" unit_str N/A classmethod N/A Distance N/A MeasureBase N/A N/A UNITS N/A chain chain_benoit chain_sears british_chain_benoit british_chain_sears british_chain_sears_truncated cm british_ft british_yd clarke_ft clarke_link fathom ft german_m gold_coast_ft indian_yd inch km link link_benoit link_sears m mi mm nm nm_uk rod sears_yd survey_ft um yd 20.1168 20.116782 20.1167645 20.1167824944 20.1167651216 20.116756 0.01 0.304799471539 0.914398414616 0.3047972654 0.201166195164 1.8288 0.3048 1.0000135965 0.304799710182 0.914398530744 0.0254 1000.0 0.201168 0.20116782 0.20116765 1.0 1609.344 0.001 1852.0 1853.184 5.0292 0.91439841 0.304800609601 1e-06 0.9144 N/A ALIAS N/A centimeter foot inches kilometer kilometre meter metre micrometer micrometre millimeter millimetre mile yard British chain (Benoit 1895 B) British chain (Sears 1922) British chain (Sears 1922 truncated) British foot (Sears 1922) British foot British yard (Sears 1922) British yard Clarke's Foot Clarke's link Chain (Benoit) Chain (Sears) Foot (International) German legal metre Gold Coast foot Indian yard Link (Benoit) Link (Sears) Nautical Mile Nautical Mile (UK) US survey foot U.S. Foot Yard (Indian) Yard (Sears) cm ft inch km km m m um um mm mm mi yd british_chain_benoit british_chain_sears british_chain_sears_truncated british_ft british_ft british_yd british_yd clarke_ft clarke_link chain_benoit chain_sears ft german_m gold_coast_ft indian_yd link_benoit link_sears nm nm_uk survey_ft survey_ft indian_yd sears_yd N/A LALIAS N/A dict N/A N/A N/A N/A k lower v N/A N/A k v N/A N/A ALIAS items __init__ N/A N/A self default_unit N/A None kwargs N/A N/A N/A N/A self m N/A self _default_unit N/A N/A self default_units kwargs N/A N/A default_unit N/A isinstance default_unit str N/A N/A N/A self _default_unit default_unit N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name N/A self UNITS N/A N/A N/A N/A self m N/A N/A self UNITS N/A name N/A N/A N/A AttributeError N/A Unknown unit type: %s name N/A __repr__ N/A N/A self N/A N/A N/A N/A Distance(%s=%s) N/A N/A self _default_unit N/A getattr self N/A self _default_unit N/A __str__ N/A N/A self N/A N/A N/A N/A %s %s N/A N/A getattr self N/A self _default_unit N/A self _default_unit N/A __cmp__ N/A N/A self other N/A N/A N/A N/A isinstance other Distance N/A N/A N/A cmp N/A self m N/A other m N/A N/A NotImplemented N/A __add__ N/A N/A self other N/A N/A N/A N/A isinstance other Distance N/A N/A N/A Distance default_unit N/A self _default_unit m N/A N/A self m N/A other m N/A N/A N/A TypeError Distance must be added with Distance N/A __iadd__ N/A N/A self other N/A N/A N/A N/A isinstance other Distance N/A N/A N/A self m N/A other m N/A self N/A N/A N/A TypeError Distance must be added with Distance N/A __sub__ N/A N/A self other N/A N/A N/A N/A isinstance other Distance N/A N/A N/A Distance default_unit N/A self _default_unit m N/A N/A self m N/A other m N/A N/A N/A TypeError Distance must be subtracted from Distance N/A __isub__ N/A N/A self other N/A N/A N/A N/A isinstance other Distance N/A N/A N/A self m N/A other m N/A self N/A N/A N/A TypeError Distance must be subtracted from Distance N/A __mul__ N/A N/A self other N/A N/A N/A N/A isinstance other N/A int float long Decimal N/A N/A N/A Distance default_unit N/A self _default_unit m N/A N/A self m N/A float other N/A N/A N/A isinstance other Distance N/A N/A N/A Area default_unit N/A sq_ N/A self _default_unit sq_m N/A N/A self m N/A other m N/A N/A N/A TypeError Distance must be multiplied with number or Distance N/A __imul__ N/A N/A self other N/A N/A N/A N/A isinstance other N/A int float long Decimal N/A N/A N/A self m N/A float other N/A self N/A N/A N/A TypeError Distance must be multiplied with number N/A __rmul__ N/A N/A self other N/A N/A N/A N/A self other N/A __div__ N/A N/A self other N/A N/A N/A N/A isinstance other N/A int float long Decimal N/A N/A N/A Distance default_unit N/A self _default_unit m N/A N/A self m N/A float other N/A N/A N/A TypeError Distance must be divided with number N/A __idiv__ N/A N/A self other N/A N/A N/A N/A isinstance other N/A int float long Decimal N/A N/A N/A self m N/A float other N/A self N/A N/A N/A TypeError Distance must be divided with number N/A __nonzero__ N/A N/A self N/A N/A N/A N/A bool N/A self m N/A N/A Area N/A MeasureBase N/A N/A UNITS N/A dict N/A N/A N/A sq_%s k N/A v 2 N/A N/A k v N/A N/A N/A Distance UNITS items N/A ALIAS N/A dict N/A N/A k N/A sq_%s v N/A N/A k v N/A N/A N/A Distance ALIAS items N/A LALIAS N/A dict N/A N/A N/A N/A k lower v N/A N/A k v N/A N/A ALIAS items __init__ N/A N/A self default_unit N/A None kwargs N/A N/A N/A N/A self sq_m N/A self _default_unit N/A N/A self default_units kwargs N/A N/A default_unit N/A isinstance default_unit str N/A N/A N/A self _default_unit default_unit N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name N/A self UNITS N/A N/A N/A N/A self sq_m N/A N/A self UNITS N/A name N/A N/A N/A AttributeError N/A Unknown unit type:  name N/A __repr__ N/A N/A self N/A N/A N/A N/A Area(%s=%s) N/A N/A self _default_unit N/A getattr self N/A self _default_unit N/A __str__ N/A N/A self N/A N/A N/A N/A %s %s N/A N/A getattr self N/A self _default_unit N/A self _default_unit N/A __cmp__ N/A N/A self other N/A N/A N/A N/A isinstance other Area N/A N/A N/A cmp N/A self sq_m N/A other sq_m N/A N/A NotImplemented N/A __add__ N/A N/A self other N/A N/A N/A N/A isinstance other Area N/A N/A N/A Area default_unit N/A self _default_unit sq_m N/A N/A self sq_m N/A other sq_m N/A N/A N/A TypeError Area must be added with Area N/A __iadd__ N/A N/A self other N/A N/A N/A N/A isinstance other Area N/A N/A N/A self sq_m N/A other sq_m N/A self N/A N/A N/A TypeError Area must be added with Area N/A __sub__ N/A N/A self other N/A N/A N/A N/A isinstance other Area N/A N/A N/A Area default_unit N/A self _default_unit sq_m N/A N/A self sq_m N/A other sq_m N/A N/A N/A TypeError Area must be subtracted from Area N/A __isub__ N/A N/A self other N/A N/A N/A N/A isinstance other Area N/A N/A N/A self sq_m N/A other sq_m N/A self N/A N/A N/A TypeError Area must be subtracted from Area N/A __mul__ N/A N/A self other N/A N/A N/A N/A isinstance other N/A int float long Decimal N/A N/A N/A Area default_unit N/A self _default_unit sq_m N/A N/A self sq_m N/A float other N/A N/A N/A TypeError Area must be multiplied with number N/A __imul__ N/A N/A self other N/A N/A N/A N/A isinstance other N/A int float long Decimal N/A N/A N/A self sq_m N/A float other N/A self N/A N/A N/A TypeError Area must be multiplied with number N/A __rmul__ N/A N/A self other N/A N/A N/A N/A self other N/A __div__ N/A N/A self other N/A N/A N/A N/A isinstance other N/A int float long Decimal N/A N/A N/A Area default_unit N/A self _default_unit sq_m N/A N/A self sq_m N/A float other N/A N/A N/A TypeError Area must be divided with number N/A __idiv__ N/A N/A self other N/A N/A N/A N/A isinstance other N/A int float long Decimal N/A N/A N/A self sq_m N/A float other N/A self N/A N/A N/A TypeError Area must be divided with number N/A __nonzero__ N/A N/A self N/A N/A N/A N/A bool N/A self sq_m N/A N/A N/A D Distance N/A A Area