JacobWeinbren / Emissions-UK

Mapping Per Capita Emissions in the UK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emissions UK

Mapping Per Capita Emissions in the UK

This project visualises per capita greenhouse gas emissions across the UK, covering Wales, England, Scotland, and Northern Ireland. It utilises geographic boundaries from the 2011 Census for Lower Layer Super Output Areas and Data Zones.

Source Study

Per Capita Consumption-Based Greenhouse Gas Emissions for UK Lower and Middle Layer Super Output Areas, 2016

This study integrates data from three sources - Output Area Classification, the Living Costs and Food Survey, and a commercial household expenditure dataset by TransUnion. The project averages these datasets to enhance output reliability.

Geographic Data Source

2011 Census Geography Boundaries (Lower Layer Super Output Areas and Data Zones)

Setup

Clone the repository and navigate into it:

git clone <repository-url>
cd emissions-uk

Backend Setup

  1. Install Python dependencies:

    pip install pandas tqdm
  2. Process the data:

    python scripts/process.py
    
  3. Generate the map:

    python scripts/create_map.py
    
  4. Generate map tiles (ensure tippecanoe is installed):

    tippecanoe --output="output/uk-emissions.pmtiles" \
        --layer="maplayer" \
        --no-feature-limit \
        --no-tile-size-limit \
        --detect-shared-borders \
        --coalesce-fraction-as-needed \
        --coalesce-densest-as-needed \
        --coalesce-smallest-as-needed \
        --increase-gamma-as-needed \
        --coalesce \
        --reorder \
        --minimum-zoom=0 \
        --maximum-zoom=17 \
        --force \
        --simplification=20 \
        output/updated_map.geojson
  5. Data Analysis:

    python scripts/median.py

Frontend Setup

Navigate to the site directory:

```bash
cd site
```

Install dependencies:

```bash
npm install
```

Run the project locally:

```bash
npm run dev
```

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Mapping Per Capita Emissions in the UK

License:MIT License


Languages

Language:Python 50.7%Language:Astro 44.7%Language:JavaScript 4.7%