Problem with wrf.interplevel desiredlev input
まだ誰も着手していません。
評価
調査の方向性
まず、issue に示されているものと同じ p、z、height の値を使って、wrf.interplevel のスカラー呼び出しとループ呼び出しを再現し、その後、要求した各レベルで NaN 値がどのように生成されるかを調べます。リポジトリのファイルやテストは指定されていないため、スカラー、リスト、numpy-array の入力に対する補間動作を比較します。入力値が原因なのか wrf.interplevel が原因なのかを、再現手順または fix を文書化したうえで特定できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hello, I encountered a problem when trying to use a "for loop" to get a sequence of different interpolation planes.
So I have tried this line, which works fine:
p_certain_level = wrf.interplevel(p,z,2893.9905)
I can plot this to get:
I also have other different height values that I want to plot. So I write a list:
height = [588.0741, 1751.7858, 2893.9905, 4019.048, 5129.8022, 6228.1494, ... ]
Then I write the for loop:
for a in range(0,3): ## here i'm just trying the first three heights, not the whole list
ss = wrf.interplevel(p, z, float(height[a]))
print(ss)
This returns something like:
As you can see, there are a lot of nan in the printed array. I also tried to plot the result:
As you can see, the middle values are kept unchanged. However, the other values are all missing. I'm not sure what's happening that leads to interplevel method not working. I've tried a few times and believe this is related to list and numpy.array (both list and np.array are producing the same problem).
I've tried wrf.getvar, in which I use a "timeidx = blabla_list [3]", which turns out to work properly.
- 主要言語
- Python
- スター
- 498
- フォーク
- 178
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NCAR/wrf-python のほかの issue
-
NCAR/wrf-python#309 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
NCAR/wrf-python#307 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
NCAR/wrf-python#286 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
NCAR/wrf-python#282 · コメント 1 件 ·
-
PyPI releases オープン
NCAR/wrf-python#274 · コメント 5 件 · リアクション 1 件 · 担当者 1 名 ·
NCAR/wrf-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·