Skip to content

Commit

Permalink
chore: fix GH Pages site (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlFontal committed Oct 4, 2022
1 parent 5ff565e commit 8a00bbe
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Copy README into build folder to include it as intro
- name: Copy README
run: |
cp README.md reports/
cp README.md reports/index.md
# Build the book
- name: Build the book
run: |
Expand Down
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# Japan's environmental Data

![License Badge](https://img.shields.io/github/license/AlFontal/environmental-data-japan?color=blue)
![Pages Badge](https://github.com/AlFontal/environmental-data-japan/actions/workflows/deploy.yml/badge.svg)
[![Pages site badge](https://img.shields.io/badge/Pages%20Site-Online-green)](https://alfontal.github.io/environmental-data-japan)

[![Stations data](https://img.shields.io/badge/Stations-Download-orange)](https://github.com/AlFontal/environmental-data-japan/tree/main/data/air_pollution/stations/clean)
[![Municipal data](https://img.shields.io/badge/Municipalities-Download-orange)](https://github.com/AlFontal/environmental-data-japan/tree/main/data/air_pollution/municipalities)
[![Prefectures data](https://img.shields.io/badge/Prefectures-Download-orange)](https://github.com/AlFontal/environmental-data-japan/tree/main/data/air_pollution/prefectures)

Repository collecting and organizing environmental data sources for Japan.

Here, we have downloaded and processed the data available through the site made available by the Japanese National Institute for Environmental Studies (NIES) (<https://tenbou.nies.go.jp/download/>).

More specifically, we have downloaded the Air Pollution Monitoring data for a total of 2039 stations located around the whole country (represented as red dots in the map below):

<img src="https://github.com/AlFontal/environmental-data-japan/raw/main/data/air_pollution/stations/doc/stations_map.png" alt="Japanese Monitoring Stations Map" title="Japanese Monitoring Stations Map" width=800px>
<img src="https://github.com/AlFontal/environmental-data-japan/raw/main/data/air_pollution/stations/doc/stations_map.png" alt="Japanese Monitoring Stations Map" title="Japanese Monitoring Stations Map" width=400px>

## The stations

Information for the exact location of each station (latitude, longitude and altitude) and the environmental variables available can be found in the table in [`/data/air_pollution/stations/doc/stations_info.csv`](data/air_pollution/stations/doc/stations_info.csv)
Information for the exact location of each station (latitude, longitude and altitude) and the environmental variables available can be found in the table in [`/data/air_pollution/stations/doc/stations_info.csv`](https://github.com/AlFontal/environmental-data-japan/data/air_pollution/stations/doc/stations_info.csv)

## Variables measured

Expand Down Expand Up @@ -39,20 +47,20 @@ Since the repository includes data for over 2000 stations, the measured variable

### (1) Station data

Daily data for each station and its measured variables from 2011-01-01 to 2018-12-31 can be accessed in the [`data/air_pollution/stations/clean`](data/air_pollution/stations/clean) folder, classified in subfolders according to the prefecture where they are located.
Daily data for each station and its measured variables from 2011-01-01 to 2018-12-31 can be accessed in the [`data/air_pollution/stations/clean`](https://github.com/AlFontal/environmental-data-japan/data/air_pollution/stations/clean) folder, classified in subfolders according to the prefecture where they are located.

### (2) Municipalities

Averaged daily data for all stations within each municipality in Japan during the same period can be found in the [`data/air_pollution/municipalities`](data/air_pollution/municipalities/) folder, with the first 2 digits of each CSV file indicating the prefecture code and the last 3 digits indicating the municipal code.
Averaged daily data for all stations within each municipality in Japan during the same period can be found in the [`data/air_pollution/municipalities`](https://github.com/AlFontal/environmental-data-japan/data/air_pollution/municipalities/) folder, with the first 2 digits of each CSV file indicating the prefecture code and the last 3 digits indicating the municipal code.

### (3) Prefectures

Estimates of the daily data for each prefecture have been estimated by averaging over the municipal averages in each prefecture.

At this point, three different methods have been used to compute the averages, weighing the municipalities differently according to diverse criteria:

+ **Area-based weighted averages**: These averages are completely population-naïve and try to better estimate the overall values for each variable across the whole area of the prefecture, wheighing high and low population density areas exactly the same. The time-series for these can be found in [`data/air_pollution/prefectures/area_weighted`](data/air_pollution/prefectures/area_weighted).
+ **Area-based weighted averages**: These averages are completely population-naïve and try to better estimate the overall values for each variable across the whole area of the prefecture, wheighing high and low population density areas exactly the same. The time-series for these can be found in [`data/air_pollution/prefectures/area_weighted`](https://github.com/AlFontal/environmental-data-japan/data/air_pollution/prefectures/area_weighted).

+ **Population-weighted averages**: These averages are computed trying to estimate the values of each variable that represent the most accurate exposure of the population of each prefecture to each pollutant/meteorological variable. For these purpose, the values for each variable have been averaged weighing every municipal term according to their population share in the prefecture. The time-series for these can be found in [`data/air_pollution/prefectures/population_weighted`](data/air_pollution/prefectures/population_weighted).
+ **Population-weighted averages**: These averages are computed trying to estimate the values of each variable that represent the most accurate exposure of the population of each prefecture to each pollutant/meteorological variable. For these purpose, the values for each variable have been averaged weighing every municipal term according to their population share in the prefecture. The time-series for these can be found in [`data/air_pollution/prefectures/population_weighted`](https://github.com/AlFontal/environmental-data-japan/data/air_pollution/prefectures/population_weighted).

+ **Infant population-weighted averages**: Following the same principal as the previous averages, these include the daily prefecture-level estimates of each measured variable based on the share of *children under 5 years old* in each municipal term. The time-series for these can be found in [`data/air_pollution/prefectures/under_5_weighted`](data/air_pollution/prefectures/under_5_weighted).
+ **Infant population-weighted averages**: Following the same principal as the previous averages, these include the daily prefecture-level estimates of each measured variable based on the share of *children under 5 years old* in each municipal term. The time-series for these can be found in [`data/air_pollution/prefectures/under_5_weighted`](https://github.com/AlFontal/environmental-data-japan/data/air_pollution/prefectures/under_5_weighted).
11 changes: 5 additions & 6 deletions reports/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#######################################################################################
# Book settings
title : KD and Tokyo's air sources # The title of the book. Will be placed in the left navbar.
title : Japan's Environmental Data # The title of the book. Will be placed in the left navbar.
author : Alejandro Fontal # The author of the book
copyright : "2022" # Copyright year to be placed in the footer
logo : images/logo.png # A path to the book logo
Expand All @@ -15,16 +15,16 @@ execute:
execute_notebooks: "off"

repository:
url: https://github.com/AlFontal/vasculitis2022-conference
url: https://github.com/AlFontal/environmental-data-japan
branch: main
html:
use_repository_button: true
use_issues_button: true
favicon: images/favicon.ico
baseurl: 'https://alfontal.github.io/vasculitis2022-conference'
baseurl: 'https://alfontal.github.io/environmental-data-japan'
comments:
utterances:
repo: 'AlFontal/vasculitis2022-conference'
repo: 'AlFontal/environmental-data-japan'
extra_navbar: |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div>
Expand All @@ -46,7 +46,6 @@ html:
<a href="https://twitter.com/alefontal" class="fa fa-twitter" style="font-size: 25px;"></a></a>
<a href="mailto:alejandro.fontal.92@gmail.com" class="fa fa-envelope" style="font-size: 25px;"></a></a>
</div>
google_analytics_id: G-TC2X861BC8
bibtex_bibfiles: references.bib

Expand All @@ -56,7 +55,7 @@ sphinx:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
bibtex_reference_style: author_year

html_baseurl: 'https://alfontal.github.io/vasculitis2022-conference/'
html_baseurl: 'https://alfontal.github.io/environmental-data-japan/'

extra_extensions:
- sphinx_sitemap
Expand Down
2 changes: 1 addition & 1 deletion reports/_toc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
format: jb-article
root: README
root: index
sections:
- file: prefecture_weighted_averages
title: From station to prefectural data
Expand Down
Binary file added reports/images/favicon.ico
Binary file not shown.
Binary file added reports/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8a00bbe

Please sign in to comment.