Optimize Raster Reader Memory Usage for Hazard Module
Maintainer antworten meist innerhalb von 3 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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)
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 478
- Forks
- 166
- Ø Merge
- 2 T. 31 Min.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CLIMADA-project/climada_python
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
CLIMADA-project/climada_python#1337 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
CLIMADA-project/climada_python#1336 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
CartoDB basemaps now need an API key (somewhat urgent)Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
CLIMADA-project/climada_python#1332 · 4 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 3 Tagen
-
warnings
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
CLIMADA-project/climada_python#1241 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
ResourceWarningOffenwarnings
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
CLIMADA-project/climada_python#1239 ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in CLIMADA-project/climada_python
Ähnliche Issues
-
request-theme
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
LizardByte/ThemerrDB#9390 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
talmolab/sleap-roots-training#79 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 3 Tagen
-
bug downstream-visible good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
exmergo/dex#778 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
lincc-frameworks/nested-pandas#579 ·
Maintainer antworten meist innerhalb von 1 Tag