Matplotlib Example
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
basemap/users/figures/plotprecip.py から始め、その変数を issue にリンクされている新しい NetCDF ファイルと比較します。背景を確認するため、参照されている Matplotlib issue を確認し、その後、サンプルのデータフィールドと単位がサポートされているソースと一致するように更新して、例が実行できることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Hello! ... I reported the following issue in the Matplotlib repo... and they said to bring it to your attention:
The Matplotlib Sample: "Plot Precip With Filled Contours"
https://matplotlib.org/basemap/users/examples.html
code source: https://matplotlib.org/basemap/users/figures/plotprecip.py
seems to be dated... I say "seems" because this is my first week of python! :)
Code for reproduction
The variables as specified in your code do not seem to exist:
latcorners = nc.variables['lat'][:]
loncorners = -nc.variables['lon'][:]
lon_0 = -nc.variables['true_lon'].getValue()
lat_0 = nc.variables['true_lat'].getValue()
I'm guessing because that data is from 2006 and something has changed since then :)
I have been failing with new data located here:
http://water.weather.gov/precip/downloads/2018/01/24/nws_precip_1day_20180124_conus.nc
surely there is a way for matplotlib to cull the information needed from the file? if not I figure I'll do the long math..
use your code located here
code source: https://matplotlib.org/basemap/users/figures/plotprecip.py
but also notice that not only are the lat lon variables present, your variable:
prcpvar = nc.variables['amountofprecip']
will need to be adjusted to prcpvar = nc.variables['observation']
and the units are now inches instead of mm.
Here is the issue I submitted to matplotlib:
https://github.com/matplotlib/matplotlib/issues/10318
- 主要言語
- Python
- スター
- 817
- フォーク
- 395
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
matplotlib/basemap のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
matplotlib/basemap#368 ·
-
Python 3.14 wheels オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
matplotlib/basemap#652 · コメント 2 件 · リアクション 5 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
matplotlib/basemap#649 · リアクション 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
matplotlib/basemap#646 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
matplotlib/basemap#645 · コメント 2 件 ·
matplotlib/basemap の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100