Optimize Raster Reader Memory Usage for Hazard Module
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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)
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 478
- Forks
- 166
- Merge médio
- 7d 17h
- PRs com merge (30d)
- 4
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CLIMADA-project/climada_python
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
CLIMADA-project/climada_python#1337 · 1 comentário ·
-
Downloaded file names keep the URL query string, invalid on WindowsTalvez já em andamento @scks1 assumiu há 3 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
CLIMADA-project/climada_python#1336 · 1 comentário ·
-
CartoDB basemaps now need an API key (somewhat urgent)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
CLIMADA-project/climada_python#1332 · 4 comentários · 1 reação ·
-
more than 20 open figuresAbertawarnings
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
CLIMADA-project/climada_python#1241 ·
-
ResourceWarningAbertawarnings
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
CLIMADA-project/climada_python#1239 ·
Todas as issues de CLIMADA-project/climada_python
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Update required: BelizeAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Add connection-allowlistsAbertanew spec review
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
w3c/browser-specs#2708 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
data good first issue
Dificuldade 2/5 Meio dia Facilidade para iniciantes 72/100
-
Word viper missingAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
dwyl/english-words#244 ·