code: def dm_to_sd(dm):
      '''
      Converts a geographic co-ordinate given in "degrees/minutes" dddmm.mmmm
      format (eg, "12319.943281" = 123 degrees, 19.943281 minutes) to a signed
      decimal (python float) format
      '''
      # '12319.943281'
      if not dm or dm == '0':
          return 0.
      d, m = re.match(r'^(\d+)(\d\d\.\d+)$', dm).groups()
      return float(d) + float(m) / 6f dm_to_sd(dm):
      '''
      Converts a geographic co-ordinate given in "degrees/minutes" dddmm.mmmm
      format (eg, "12319.943281" = 123 degrees, 19.943281 minutes) to a signed
      decimal (python float) format
      '''
      # '12319.943281'
      if not dm or dm == '0':
          return 0.
      d, m = re.match(r'^(\d+)(\d\d\.\d+)$', dm).groups()
      return float(d) + float(m) / 60
docs: Converts a geographic co-ordinate given in "degrees/minutes" dddmm.mmmm
      format (eg, "12319.943281" = 123 degrees, 19.943281 minutes) to a signed
      decimal (python float) format