def depipe(s):
n = <NUM_LIT:0><EOL>for i in reversed(s.split('<STR_LIT:|>')):<EOL><INDENT>n = n / <NUM_LIT> + float(i)<EOL><DEDENT>return n<EOL>
Convert a string of the form DD or DD|MM or DD|MM|SS to decimal degrees