Home / Works / Philippine Earthquake Warehouse

Philippine Earthquake Warehouse

Personal project · Data engineering
Public USGS data Snowflake · dbt · Airflow · GitHub Actions · Python

Open the live map

Overview

An end-to-end analytics warehouse for earthquakes in and around the Philippines. Airflow loads the USGS earthquake API into Snowflake every morning, dbt models it into a star schema with slowly changing history, and GitHub Actions lints and builds every change in an isolated schema. The same marts feed a public interactive map that refreshes daily. The project was scaffolded with Claude Code and then reviewed, run and extended by me.

How it works

Two sources land in raw Snowflake tables, dbt turns them into a star schema, and the marts feed both the analytics models and the public map. Every change goes through CI first.

USGS earthquakeAPI Daily Airflow load:30-day windows, overlap Snowflake rawtables (VARIANT) One-off load ofprovince polygons Province boundarypolygons Staging, point-in-polygon,SCD2 snapshot Star schema marts:fact + 4 dimensions Analytics models:rolling windows, lag Daily exportto JSON Public interactive map(Vercel, daily refresh) Pull requestto the repo CI: lint, dry-run, buildin a per-PR schema

InputStepDecision / optionData storeOutput

What it demonstrates

Screenshots

Screenshot of the PH Quake Map showing earthquake events across the Philippines with filters

dbt lineage graph from raw sources through staging and intermediate models to the marts

What it found

From 8,104 events between January 2016 and early November 2026 in the USGS catalogue.

Limits

Credits