ukhas/habitat — pull request #321 by rossengeorgiev (2014-08-24 17:58:59+00:00)
Title: Alternative sense method for ddmm.mmmm coordinates

I've noticed that the coordinate routine for ddmm.mmmm format doesn't handle lack of padding, so I suggest the following changes.

Below are some test cases:

|Input (ddmm.mmmm)|Old method|New method|
|--:|--:|--:|
|15530.001|155.500017|155.500017|
|5530.001|55.500017|55.500017|
|530.001|5.500017|5.500017|
|30.001|could not convert string to float: |0.500017|
|0.001|could not convert string to float: |1.7e-05|
|-15530.001|-155.500017|-155.500017|
|-5530.001|-55.500017|-55.500017|
|-530.001|-5.500017|-5.500017|
|-30.001|could not convert string to float: -|-0.500017|
|-0.001|could not convert string to float: |-1.7e-05|
|-15530.001|-155.500017|-155.500017|
|-05530.001|-55.500017|-55.500017|
|-00530.001|-5.500017|-5.500017|
|-00030.001|-0.500017|-0.500017|
|-00000.001|-1.7e-05|-1.7e-05|
|0|need more than 1 value to unpack|0.0|
|0.0|could not convert string to float: |0.0|
|161.000|Minutes component > 60.|Minutes component > 60.|