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_mm_ss(dd, cal_long=True, use_sign=False, use_quad=False):
      """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]
      if not use_quad:
          quad = ""
      if not use_sign:
          deg_sign = ""
      mins, secs = divmod(dd*3600, 60)
      degs, mins = divmod(mins, 60)
      frmt = "{}{}-{:0.0f}-{:05.2f}{}".format(deg, deg_sign, mins, secs, quad)
      return frmt
code_tokens: def dd_mm_ss ( dd , cal_long = True , use_sign = False , use_quad = False ) : 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 ] if not use_quad : quad = "" if not use_sign : deg_sign = "" mins , secs = divmod ( dd * 3600 , 60 ) degs , mins = divmod ( mins , 60 ) frmt = "{}{}-{:0.0f}-{:05.2f}{}" . format ( deg , deg_sign , mins , secs , 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"""