Optimize Raster Reader Memory Usage for Hazard Module
Les mainteneurs répondent en général sous 3 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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)
- Langage dominant
- Jupyter Notebook
- Étoiles
- 478
- Forks
- 166
- Merge moyen
- 2 j 31 min
- PR mergées (30 j)
- 4
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CLIMADA-project/climada_python
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
CLIMADA-project/climada_python#1337 ·
Les mainteneurs répondent en général sous 3 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
CLIMADA-project/climada_python#1336 ·
Les mainteneurs répondent en général sous 3 jours
-
CartoDB basemaps now need an API key (somewhat urgent)Peut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
CLIMADA-project/climada_python#1332 · 4 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 3 jours
-
more than 20 open figuresOuvertewarnings
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
CLIMADA-project/climada_python#1241 ·
Les mainteneurs répondent en général sous 3 jours
-
ResourceWarningOuvertewarnings
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
CLIMADA-project/climada_python#1239 ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de CLIMADA-project/climada_python
Issues similaires
-
[MOVIE]: Barbarella (1968)Ouverterequest-theme
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
LizardByte/ThemerrDB#9390 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
talmolab/sleap-roots-training#79 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 3 jours
-
bug downstream-visible good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
exmergo/dex#778 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
lincc-frameworks/nested-pandas#579 ·
Les mainteneurs répondent en général sous 1 jour