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

`AreaDefinition.get_xy_from_proj_coords` code error in function call of `get_array_indices_from_projection_coordinates`

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
data

Hướng nghiên cứu

Mở pyresample/geometry.py tại lệnh gọi AreaDefinition.get_xy_from_proj_coords được tham chiếu trong issue, sau đó so sánh với get_array_indices_from_projection_coordinates và các ví dụ được cung cấp. Hoàn thành khi phương thức đã ngừng sử dụng hoạt động với các lệnh gọi tọa độ vô hướng và mảng được minh họa mà không thay đổi hành vi của phương thức thay thế.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem description

Despite being already deprecated in favour of get_array_indices_from_projection_coordinates, get_xy_from_proj_coords does not work anymore because at https://github.com/pytroll/pyresample/blob/3e8d2442790455493e6c376408e90607bd485aad/pyresample/geometry.py#L2076 there is a wrong self argument in the function call of get_array_indices_from_projection_coordinates.

Code example
from pyresample.geometry import AreaDefinition
area_def = AreaDefinition.from_epsg(code=4326, resolution=0.5) 
area_def.get_xy_from_proj_coords([5], [2])             
area_def.get_xy_from_proj_coords(xm=5, ym=2)  
area_def.get_xy_from_proj_coords([5,2], [0,2])       
area_def.get_array_indices_from_projection_coordinates(xm=[5,2], ym=[5,2]) # OK 
area_def.get_array_indices_from_projection_coordinates(xm=5, ym=2) # OK 
area_def.get_array_indices_from_projection_coordinates(xm=5, ym=2) # OK 
Ngôn ngữ chính
Python
Star
388
Fork
102
Merge trung bình
5 ngày 17 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 pytroll/pyresample

Tất cả issue của pytroll/pyresample

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.