Skip to content

Commit

Permalink
Merge branch 'main' into era5-analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
SahitiSarva committed Mar 17, 2024
2 parents b85931e + 3fdfaa1 commit 8771dbf
Show file tree
Hide file tree
Showing 23 changed files with 790 additions and 1,333 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to GitHub Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Dependencies
run: |
if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi
if [ -f pyproject.toml ]; then pip install ".[docs]"; fi
- name: Build Jupyter Book
run: |
jupyter-book build . --config docs/_config.yml --toc docs/_toc.yml
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main' && job.status == 'success'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
destination_dir: PH
enable_jekyll: false
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,3 @@ _build/

/data

/images
39 changes: 39 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- id: check-json
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
name: Markdownlint
files: \.(md|mdown|markdown)$
args: [
"--disable=MD013", # line-length
"--disable=MD033", # no-inline-html
]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
name: codespell
description: Checks for common misspellings in text files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix]
- id: ruff-format
types_or: [python, pyi, jupyter]
914 changes: 373 additions & 541 deletions LICENSE

Large diffs are not rendered by default.

541 changes: 0 additions & 541 deletions LICENSE.md

This file was deleted.

8 changes: 0 additions & 8 deletions Makefile

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Understanding Impacts of Excess Heat in Filipino cities


The Development Objective is to empower urban Philippines Local Government Units (LGUs) to take preventative and real-time action to mitigate the impacts of heatwaves. This will occur through the provision of more timely and granular data products that reveal localized occurrences of heatwaves and their impacts on human health and urban economies. These data products will be an input to the GeoRiskPH and PlanSmart Planning tool developed under the Philippines Disaster Risk Management and Climate Development Policy Loan with a Catastrophe Deferred-Drawdown Option (P180585). Specifically, this data product will expand the multi-hazard information in the GeoRiskPH and PlanSmart platforms to include heat, so that LGUs can integrate spatial heat risk information in their Comprehensive Land Use Planning (CLUP).

Until now, cities have been challenged to address heatwaves, because the data and expertise needed to mitigate impacts are typically scattered across many departments. There is also much difficulty in monitoring the effect of existing policies, which the World Bank’s Climate report on the Philippines recommended as a pillar to future sustainability work and accountability.1 To overcome this barrier, as part of the World Bank’s Technical Deep Dive on Urban Heat (April 24-28, 2023), Filipino authorities have requested support on better measurement of urban heatwaves and their impacts. To meet this demand-driven request, the project team would facilitate access to heat risk and vulnerability information by creating a Data Product for select cities in of the Philippines. Through this public data good, Filipino LGU authorities will be able to identify investments and policy interventions that are critical to alleviate impact from excess heat in specific barangays of their cities. The successful interventions can then be scaled to build the resilience of the city. The Data Product will be designed and validated with inputs from local data collection drives and stakeholder participation to ensure inclusive design and participation. The roll out of the Data product will happen through training sessions for the LGU authorities who can then use the insights from this tool to inform policy interventions on a regular basis.
Expand Down Expand Up @@ -32,4 +33,4 @@ Historical and hyperlocal weather data: Weather data will be collected from open

## License

The `heatwaves` repository is licensed under the **World Bank Master Community License Agreement**.
This projects is licensed under the [**Mozilla Public License**](https://opensource.org/license/mpl-2-0/) - see the [LICENSE](LICENSE) file for details.
20 changes: 18 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Book settings
title:
author: World Bank
author: World Bank Data Lab
logo: docs/images/logo.png
only_build_toc_files: true

repository:
url: https://github.com/worldbank/template
url: https://github.com/datapartnership/heatwaves
branch: main

#######################################################################################
# HTML-specific settings
html:

home_page_in_navbar: false
extra_navbar: ""
use_edit_page_button: true
Expand All @@ -22,6 +23,21 @@ html:
<b>All content (unless otherwise specified) is subject to the <a href="https://raw.githubusercontent.com/worldbank/template/main/LICENSE">World Bank Master Community License Agreement.</a></b>
</div>
google_analytics_id: G-ETJ4QT0E4L
=======
# home_page_in_navbar: true
# extra_navbar: ""
# use_edit_page_button: true
# use_repository_button: true
# use_issues_button: true
# baseurl: https://datapartnership.github.io/heatwaves/PH
# extra_footer: |
# <div>
# Country borders or names do not necessarily reflect the World Bank Group’s official position. All maps are for illustrative purposes and do not imply the expression of any opinion on the part of the World Bank, concerning the legal status of any country or territory or concerning the delimitation of frontiers or boundaries
# </div>
# <div>
# <b>All content (unless otherwise specified) is subject to the <a href="https://www.mozilla.org/en-US/MPL">Mozilla Public License.</a></b>
# </div>


#######################################################################################
# Execution settings
Expand Down
3 changes: 3 additions & 0 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
format: jb-book

root: README

parts:
Expand All @@ -19,3 +20,5 @@ parts:
# title: World Bank DEC
# - url: https://www.worldbank.org/en/research/dime
# title: World Bank DIME
=======
root: notebooks/measuring-heatwaves/heatwaves-in-philippines.ipynb
1 change: 0 additions & 1 deletion docs/requirements.txt

This file was deleted.

23 changes: 0 additions & 23 deletions index.html

This file was deleted.

2 changes: 1 addition & 1 deletion environment.yml → notebooks/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ dependencies:
- netCDF4
- shapely
- rioxarray
- xarray
- xarray
Loading

0 comments on commit 8771dbf

Please sign in to comment.