Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

WRF-python post-processing wind speed issues

オープン
#229 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
numpy, python
領域
data

調査の方向性

まず、示されている Python コードと参照されている D3_2010_07_3_20100712161000.nc データセットを使って問題を再現します。getvar('uvmet') と getvar('uvmet_wspd_wdir') の出力と実装を調査します。転置が想定されたものなのか、バグなのかを判断し、その動作を文書化または修正できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

Recently, I used uvmet from WRF-Python to extract the U and V components of wind velocity. However, when I extracted the composite wind speed from uvmet_wspd_wdir, I found that the wind speed calculated using the U and V components differed significantly from the directly extracted wspd values.

code:

import wrf
import numpy as np
from netCDF4 import Dataset

file_data = Dataset('D3_2010_07_3_20100712161000.nc')
U,V = wrf.getvar(file_data,'uvmet') #m/s
WSD,WDIR = wrf.getvar(file_data,'uvmet_wspd_wdir')
a = np.sqrt(np.array(U.values)**2+np.array(V.values)**2)
b = np.array(WSD.values)

The result indicates that a is the transpose matrix of b.
Why does the matrix transpose happen? Is it due to the storage problem of components in u and v?

I am not very sure which one is the true value that can be compared with observed values.
I am so glad looking forward to your answer.

主要言語
Python
スター
498
フォーク
178
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NCAR/wrf-python のほかの issue

NCAR/wrf-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。