Generalizing tiling operations
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
まず gmt_data_server と GMT_Create_Session のロードパスを読み、次に gmtlib_file_is_srtmrequest、gmtlib_get_srtmlist、gmtlib_assemble_srtm を追跡します。任意のデータセットとタイルサイズに対応するタイリングフローが、標準化された tiles.nc グリッドと背景のデフォルト値とともに仕様化され、さらに海洋の命名方法の選択も解決されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Shell
- スター
- 7
- フォーク
- 3
- 平均マージ
- 9時間 22分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GenericMappingTools/gmtserver-admin のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
GenericMappingTools/gmtserver-admin#295 · コメント 4 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
GenericMappingTools/gmtserver-admin#297 · コメント 21 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 20/100
GenericMappingTools/gmtserver-admin#289 · コメント 1 件 ·
-
SWOT Gravimetry data再び着手できるかも @Esteban82 が 530 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンdocumentation
GenericMappingTools/gmtserver-admin#271 · コメント 40 件 · リアクション 1 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
GenericMappingTools/gmtserver-admin#257 · コメント 9 件 ·
GenericMappingTools/gmtserver-admin の issue をすべて見る
似ている issue
-
package-update
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
obra/superpowers#2394 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
CachyOS/cachyos-aur-derived#772 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
kristofdegrave/homeassistant-smart-charging#1413 ·
メンテナーはふだん 1 日以内に返信