matplotlib / matplotlib/basemap
Matplotlib Example
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 817
- Fork
- 395
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với basemap/users/figures/plotprecip.py và so sánh các biến của nó với tệp NetCDF mới hơn được liên kết trong issue. Kiểm tra issue Matplotlib được tham chiếu để biết ngữ cảnh, sau đó cập nhật ví dụ để các trường dữ liệu và đơn vị của nó khớp với nguồn được hỗ trợ, rồi xác minh rằng ví dụ chạy được.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- data-visualization, documentation
- Loại issue
- Tài liệu
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100