Generalizing tiling operations
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Bắt đầu bằng cách đọc gmt_data_server và đường dẫn nạp của GMT_Create_Session, sau đó lần theo gmtlib_file_is_srtmrequest, gmtlib_get_srtmlist và gmtlib_assemble_srtm. Công việc được xem là hoàn tất khi luồng tiling được đặc tả cho các dataset và kích thước tile tùy ý, với một lưới tiles.nc được chuẩn hóa và các giá trị mặc định cho nền; lựa chọn cách đặt tên cho đại dương cũng cần được giải quyết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
These nots are mostly to myself to clarify how I did the tiling blending, but also for GMT contributes to comment on in case I am proposing the wrong path.
Currently, we only offer two tiled data sets: SRTM1s and SRTM3s. THey are not available everywhere (land only) so we also have a tiny srtm_tiles.nc grid that is true/false if a tile exist. Here is how GMT handles a request like gmt grdimage @earth_relief_01s -RFR -JM20c -B -pdf map:
- During module initialization (gmt_init_module) we call gmtlib_file_is_srtmrequest. It checks if this is one of the two earth_relief_01|3s files, and if so it sets ocean to true if we gave earth_relief instead of srtm_relief as the name. If not then we are done.
- Next, gmtlib_get_srtmlist is called. It builds the list of tile file names needed. To do this it uses the region (-R) rounded outwards to nearest tile size (here 1 degree). It then loops over all the imaginary tiles needed but if the relevant node in the grid srtm_tiles.nc is false we skip it since that tile is not present on the server. If ocean was determined to be true then we also add the file earth_relief_15s as the last file. The listfile is called =srtm##### (random unique ints) and placed in the temp dir. Its path is then used to replace the initial @earth_relief_01|3s file given to the module.
- When the grid is accessed by GMT_Read_Data, we recognize the gridname using the gmtlib_file_is_srtmlist function, and if true then we call gmtlib_assemble_srtm which passes the list of tiles to grdblend. The resulting grid is passed back out to the module
All this works fine, but we need to generalize this to work for any dataset with any tile size, etc. This means we must
- Use the dataset name (without _xxy) to mean a directory with tiles (instead of special names like srtm1). E.g., if we tiled the 15s grid then inside eart/earth_relief there would be a directory earth_relief_15s and no earth_relief_15s_p.grd file.
- Let the tile size be a variable
- Standardize the name of the tiles.nc grid
- Generalize the notion of a background default grids for areas with no tiles.
I think the information needed to do this simply goes into the gmt_data_server file which is loaded into memory during GMT_Create_Session.
We may also consider not doing the with or without ocean options since that means different input names.
- Ngôn ngữ chính
- Shell
- Star
- 7
- Fork
- 3
- Merge trung bình
- 9 giờ 22 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 GenericMappingTools/gmtserver-admin
-
Release of GEBCO 2026Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
GenericMappingTools/gmtserver-admin#295 · 4 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
GenericMappingTools/gmtserver-admin#297 · 21 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
GenericMappingTools/gmtserver-admin#289 · 1 bình luận ·
-
SWOT Gravimetry dataCó thể làm lại được @Esteban82 đã nhận 531 ngày trước và không có pull request nào đang mở. Đang mởdocumentation
GenericMappingTools/gmtserver-admin#271 · 40 bình luận · 1 reaction · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
GenericMappingTools/gmtserver-admin#257 · 9 bình luận ·
Tất cả issue của GenericMappingTools/gmtserver-admin
Issue tương tự
-
limine: new version 12.9.1Đang mởout-of-date
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
CachyOS/CachyOS-PKGBUILDS#1917 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
package-update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug needs triage
Độ 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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
EmbarkStudios/cargo-about#323 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vllm-project/vllm-metal#841 ·
Maintainer thường phản hồi trong vòng 1 ngày