Distortion and weird artefacts using polar stereographic projection
@sadielbartholomew đang làm issue này rồi.
Từ ngày 11/7/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
A user has notified us that contour plots using the south polar stereographic projection (proj="spstere") are distorted in that they are not showing the data correctly, for example in shape and with weird line artefacts appearing in the data displayed across the plots, too - see the example below. They have evidenced that using Python 2 and our final Python 2 version of cf-plot, 2.4.10, everything looks as it should, so something at least has broken either during the migration 2->3 or since then, in this respect.
Though I have only observed this for the south polar case, given the symmetry in the code between these, I suspect the north polar case will suffer from these issues also, but I am yet to test this.
Example
Minimal reproducer
f = cf.read("<filename in question>.nc")
g = f[0][:,0,:,:].squeeze()
cfp.con(g, lines=False) # see A output
cfp.mapset(proj='spstere', boundinglat=-60)
cfp.con(g, lines=False) # see B output
cfp.mapset(proj='spstere')
cfp.con(g, lines=False) # see C output
A, looks as it should
B, some flecks on the data
C, flecks as above plus line artefacts
User images
Some further plots with code similar to the above showing the distortion in shape (note these aren't directly comparable i.e. showing the exact same thing, since the Python 2 case is - going from the title of the plot - from a seasonal mean of the same data):
Working case (Python 2, cf-plot 2.4.10 and cf-python 2.3.2)
Broken case (Python 3, cf-plot 3.3.0 and cf-python 3.13.1)
- Ngôn ngữ chính
- Python
- Star
- 21
- Fork
- 11
- Merge trung bình
- 7 giờ 11 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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.
Issue khác của NCAS-CMS/cf-plot
-
testing
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
-
Add `AGENTS.md` fileĐang mởdocs enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
-
Add animation hooks into cf-plotCó thể làm lại được @bnlawrence đã nhận 97 ngày trước và không có pull request nào đang mở. Đang mởenhancement
-
Ugly nemo plotting issueĐang mởbug v35plus
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của NCAS-CMS/cf-plot
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
RailtownAI/railtracks#1633 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
review-panel severity:low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
kristovatlas/coin-accounting#152 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation :blue_book:
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
PennyLaneAI/pennylane#10280 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`pipx reinstall` prints a Python traceback when the reinstall failsCó thể đã có người làm @ParamTanna đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày