original_docstring: decimal degrees to deg dec min
docstring: decimal degrees to deg dec min
docstring_tokens: decimal degrees to deg dec min
code: def dd_dmm(dd, cal_long=True):
      """decimal degrees to deg dec min"""
      deg_sign = u'\N{DEGREE SIGN}'
      deg = int(dd)
      if deg < 0:
          quad = ['S', 'W'][cal_long]
          deg = abs(deg)
      else:
          quad = ['N', 'E'][cal_long]
      minsec = divmod((deg - dd)*60, 60)[-1]
      frmt = "{}{} {:0.2f}' {}".format(deg, deg_sign, minsec, quad)
      return frmt
code_tokens: def dd_dmm ( dd , cal_long = True ) : deg_sign = u'\N{DEGREE SIGN}' deg = int ( dd ) if deg < 0 : quad = [ 'S' , 'W' ] [ cal_long ] deg = abs ( deg ) else : quad = [ 'N' , 'E' ] [ cal_long ] minsec = divmod ( ( deg - dd ) * 60 , 60 ) [ - 1 ] frmt = "{}{} {:0.2f}' {}" . format ( deg , deg_sign , minsec , quad ) return frmt
short_docstring: decimal degrees to deg dec min
short_docstring_tokens: decimal degrees to deg dec min
comment: """decimal degrees to deg dec min"""