私はスクリプトを作成するのが初めてで、特にarcpyモジュールのみに取り組んできました。現在、スクリプトを使用して、「http://weather.noaa.gov/pub/data/observations/metar/stations」から風の詳細を取得しています。風向を Web アプリケーションに統合する必要があり、風向のみを度数で返すようにスクリプトを変更する際の支援が必要です。「http://pypi.python.org/pypi/ からスクリプトをダウンロードしたリンクは次のとおりです。方向のみを返す関数を追加して、Metar.py に変更を加えてみました。
 def windDirection(self):
      """
      Return a textual description of the wind conditions.
      Units may be specified as "MPS", "KT", "KMH", or "MPH".
      """
      if self.wind_speed == None:
          return "missing"
      elif self.wind_speed.value() == 0.0:
          text = "calm"
      else:
          wind_speed = self.wind_speed.string(units)
          text = "%s"(self.wind_dir.directVal)
      return text
また、Datatypes.py に関数を追加しました"
def directVal( self ):
    if not self._compass:
      degrees = 22.5 * round(self._degrees/22.5)
      if degrees == 360.0:
        self._directVal = "N"
      else:
        for name, d in direction.compass_dirs.iteritems():
          if d == degrees:
            self._directVal = name
            break
    return self._directVal
この値をレポート以外の別の強力なテキストとして返す方法がわかりません。手伝ってください。