Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Distortion and weird artefacts using polar stereographic projection

Đang mở
#55 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@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ả

bug

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

cfplot_a003

B, some flecks on the data

cfplot_a002

C, flecks as above plus line artefacts

cfplot_a001

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)

b_era

Broken case (Python 3, cf-plot 3.3.0 and cf-python 3.13.1)

a_era

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NCAS-CMS/cf-plot

Tất cả issue của NCAS-CMS/cf-plot

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.