Optimize Raster Reader Memory Usage for Hazard Module
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the HazardXarrayReader class and its get_hazard_kwargs() method, where the raster data is turned into centroid coordinates for the hazard module. The issue leaves open whether the new options should default to filtering out no-data and zero-intensity points, so settle that with the maintainers first. Done means that centroids are built only for the selected coordinates, with the options exposed on the reader and covered by tests.
索引モデルが issue の本文から書いたものです。
説明
The current raster readers for the hazard module require building centroids for every point across the total extent of the raster. For high-resolution rasters, this leads to excessive memory requirements.
The construction requires building a Centroid grid for every point of the raster (even for no-data points)
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
(Add an option to?) Sub-select the dataset to coordinates which are not always NaN (also 0?)
This approach would save substantial RAM and computation time.
Specifically:
- add optional attributes to
HazardXarrayReader(e.g.ignore_novalue_coords(default True) andignore_zero_intensity_coords(default False) - based on these attributes, sub-select the data in the
get_hazard_kwargs()method, to generate Centroids only for the corresponding coordinates.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
- This is related to the refactoring of the centroids (GeoDataFrame)
- This issue affects both read raster and potentially write raster methods? (a priori not)
- 主要言語
- Jupyter Notebook
- スター
- 478
- フォーク
- 166
- 平均マージ
- 2日 31分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CLIMADA-project/climada_python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CLIMADA-project/climada_python#1337 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
CLIMADA-project/climada_python#1336 ·
メンテナーはふだん 3 日以内に返信
-
CartoDB basemaps now need an API key (somewhat urgent)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CLIMADA-project/climada_python#1332 · コメント 4 件 · リアクション 1 件 ·
メンテナーはふだん 3 日以内に返信
-
warnings
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
CLIMADA-project/climada_python#1241 ·
メンテナーはふだん 3 日以内に返信
-
ResourceWarningオープンwarnings
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CLIMADA-project/climada_python#1239 ·
メンテナーはふだん 3 日以内に返信
CLIMADA-project/climada_python の issue をすべて見る
似ている issue
-
bug downstream-visible good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lincc-frameworks/nested-pandas#579 ·
メンテナーはふだん 1 日以内に返信
-
feed submission north america
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
MobilityData/mobility-database-catalogs#1765 ·
メンテナーはふだん 2 日以内に返信
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
good first issue sem código
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100