def __parse_winpilot_coordinate(self, str): str = str.lower() if str.endswith("s") or str.endswith("w"): negative = True; str = str.rstrip("sw") else: negative = False; str = str.rstrip("ne") str = str.split(":") if len(str) < 2: return None a = Angle.dms(int(str[0]), float(str[1])) if (negative): a.flip() return a
def __parse_winpilot_coordinate(self, str): str = str.lower() if str.endswith("s") or str.endswith("w"): negative = True str = str.rstrip("sw") else: negative = False str = str.rstrip("ne") str = str.split(":") if len(str) < 2: return None a = Angle.dms(int(str[0]), float(str[1])) if (negative): a.flip() return a