The website of the Storm Events Archive (SEA): an open catalogue of tornadoes, hailstorms and waterspouts across the Philippines. SEA is an independent project that supersedes Project SWAP (Severe Weather Archive of the Philippines). The site shows two datasets: the SEA C1 (Cycle 1, the current collection cycle: the SEA Google Sheet, read live) and SWAP Data Release 4, the latest citable release. Plain HTML, CSS and JavaScript, no build step and no framework, so it runs on GitHub Pages as is.
Project Leader: Generich H. Capuli · ORCID 0000-0003-1253-7043 Data: SEA C1 and SWAP DR4 on Zenodo, DOI 10.5281/zenodo.19178931, both CC BY 4.0
| Page | File | What it does |
|---|---|---|
| Home | index.html |
Mission, headline counts, events-per-year chart, latest events, a live Himawari loop, the PAGASA WRF D02 (2 km) sounding viewer, and the regimes that drive Philippine severe weather |
| Archive | archive.html |
Filterable map (events, or hotspots as a quartic kernel density estimate with a 50 km bandwidth, per event type, following arXiv:2609.01692) and timeline, a full record drawer for every event, shareable links, an "anatomy of a record" walkthrough, and a browser for the raw CSVs |
| Statistics | statistics.html |
Climatology computed in the browser: per year, seasonality, diurnal cycle (PHT), EF ratings, hail scale and size, island groups, top provinces, confidence, documentation, notable records and outbreaks |
| Research | research.html |
Papers, preprints, data releases and tools, with citation guidance |
| About | about.html |
The project: overview, vision, mission, goals, scope, principles, timeline, and the Project Leader (profile from data/leader.json, publications from data/research.json) |
| Contact | contact.html |
One form for severe weather reports, corrections to records, data questions and collaboration; the fields adapt to the reason |
Home, Archive and Statistics have a switch: SEA C1 | SWAP DR4. Visitors start on
SEA C1; their choice is remembered, and links carry it (?ds=live or ?ds=dr4).
SEA C1 (Cycle 1) is the ongoing archive: the SEA Google Sheet that new reports go into. It is still
an ongoing cycle, with its release scheduled for March 2027 (ongoing.scheduledRelease); until then the site
lets people browse it but offers no "Download original" for it. It is
open under CC BY 4.0, like DR4.
The sheet's address is kept private. Browsers never contact the sheet. Every hour, the GitHub
Actions deploy downloads its three tabs (Tornadoes & Supercells, Hailstorms,
Marine (i.e. Waterspouts)) into data/ongoing/*.csv with tools/fetch_ongoing.py, and the site
reads that copy. A row added to the sheet appears on the site within about an hour, or right away if
you run the workflow by hand (Actions → Deploy to GitHub Pages → Run workflow). Hovering over the
data badge shows the time of the copy.
Set this up once:
- Copy the sheet's ID: the long code between
/d/and/editin its address. - In the repository: Settings → Secrets and variables → Actions → New repository secret.
Name:
SEA_SHEET_ID. Secret: the ID. Click Add secret. - Keep the sheet shared as Anyone with the link can view, so the deploy can download it. The link is not in the website, the repository files or the deploy logs (GitHub hides secrets in logs).
If the copy can't be loaded, the page falls back to DR4 and says so.
With the full DR4 files on the site, every record of SEA C1 is compared with DR4: the Archive gets an Added since SWAP DR4 filter and tag, and the record drawer says whether a record is already in a citable release (and gives the right citation either way). A record counts as "in DR4" when DR4 has the same type and DateTime at the same place (same name or within 15 km), or the same place within 36 hours (time corrected since).
Sheet tips: keep the header row and the description row as they are; columns are read by name,
so you can add columns on the right. Rows need a year and a Location to count as events; empty
template rows are ignored. A partial DateTime (191010_, 1991, 191804XX_0600, 19961210) is kept
at the precision it has and shown as "day unknown" or "time unknown". Tab names are in data/config.json →
ongoing; the sheet ID is only in the SEA_SHEET_ID secret.
Every page loads each of the three SWAP DR4 files in this order:
data/swap/*.csv— a copy on the site itself (fast, always works)- Zenodo, live — works only if the visitor's browser is allowed to read Zenodo directly
data/sample/*.csv— 24 real DR4 records bundled as an offline fallback
A badge on each page says which source is in use ("Full SWAP DR4 · site copy" or "Sample"), so visitors are never misled. To make sure the full dataset is always served, do one of these:
- Recommended — GitHub Actions deploy. In the repo go to Settings → Pages → Build and
deployment → Source: GitHub Actions. The included
.github/workflows/deploy.ymldownloads the CSVs from Zenodo intodata/swap/on every push, every hour, and on demand (Actions tab → Deploy to GitHub Pages → Run workflow). New Zenodo releases are picked up automatically once you update the DOI indata/config.json. - Or commit the files. Run
python3 tools/fetch_swap.pylocally (standard library only) and commitdata/swap/hail.csv,tornado.csvandmarine.csv. Use this with Deploy from a branch.
The pages fetch data files, so open them through a local server rather than by double-clicking:
python3 tools/fetch_swap.py # optional: get the full DR4 CSVs
SEA_SHEET_ID=<id> python3 tools/fetch_ongoing.py # optional: refresh the copy of SEA C1
python3 -m http.server 8000 # then open http://localhost:8000| To change… | Edit |
|---|---|
| DOI, release details, CSV locations, official per-year counts | data/config.json |
| SEA C1: name, licence, scheduled release, tab names | data/config.json → ongoing (sheet ID: the SEA_SHEET_ID secret) |
| Sounding stations and forecast hours | data/config.json → soundings (folder names must match PAGASA's index) |
| Himawari product / tile | data/config.json → himawari (level 4, tile 1_1 covers ~114–141°E, 0–25°N) |
| Publications | data/research.json (leave authors empty rather than guessing) |
| Project Leader profile (bio, focus, roles, photo, links; education and awards appear once filled) | data/leader.json |
| Page text, header, footer | the .html files |
| Colours, type, spacing | top of css/style.css |
The CSV parser reads columns by header name, tolerates a byte-order mark, CRLF line endings and quoted fields, and skips rows without a usable year and location (such as the description row under the header). Hail-scale classes are ordered by their median measured size in the data.
You need a free GitHub account. No coding tools are required; everything below works in the browser.
- Create the repository. On github.com click New repository. Name it, for example,
storm-events-archive, set it to Public (free GitHub Pages needs a public repository), and click Create repository. - Upload the site. Unzip this folder on your computer. In the new repository click
uploading an existing file (or Add file → Upload files), then drag in the contents of the
folder:
index.html,css/,js/,data/,assets/,tools/and the rest. Click Commit changes.- The
.githubfolder (it holds the deploy workflow) is hidden on Mac and Windows. Show hidden files first (Mac: Cmd+Shift+. in Finder; Windows: View → Hidden items) so it is uploaded too. If it doesn't upload, create it in GitHub instead: Add file → Create new file, type the name.github/workflows/deploy.yml, and paste in the contents of that file.
- The
- Turn on Pages. Go to Settings → Pages. Under Build and deployment → Source, choose GitHub Actions.
- Run the first deploy. Open the Actions tab. The Deploy to GitHub Pages workflow starts on its own after each commit; if it hasn't, open it and click Run workflow. It takes about a minute and also copies SEA C1 and downloads the full SWAP DR4 CSVs into the site.
- Visit the site at
https://<your-username>.github.io/storm-events-archive/. The link also appears under Settings → Pages and on the finished workflow run.
Updating later: edit a file on github.com (pencil icon) or upload a replacement, then commit. The site redeploys automatically within a minute or two. It also refreshes the data every hour.
Your own domain (optional): buy a domain (for example sea-ph.org), add it under
Settings → Pages → Custom domain, and create the DNS records GitHub shows you. Tick
Enforce HTTPS once it is available.
Checks after publishing: the badge on the Home page should read SEA C1 · … events (hovering over it shows the time of the copy), switching to SWAP DR4 should read SWAP DR4 · 1,624 events, the map should show its basemap, and the Himawari and sounding panels should load imagery.
Out of the box the Contact form validates input, keeps a draft, and prepares the message for the
visitor to copy into the Google contact form. Two free services make it send directly and accept
photos and videos. Both are configured in data/config.json under "contact".
- Go to web3forms.com, enter the email address that should receive reports, and copy the access key they email you.
- Put it in
data/config.json:"web3formsKey": "your-access-key".
The button then reads Send report and messages arrive in your inbox. (Any service that accepts a
JSON POST with subject, email and message also works: put its URL in "endpoint" instead.)
Web3Forms' free plan doesn't take attachments, so files go to Cloudinary and the email contains a link to each one. Cloudinary's free plan accepts photos up to 10 MB and videos up to 100 MB.
- Create a free account at cloudinary.com. Your cloud name is shown on the dashboard.
- Go to Settings → Upload → Upload presets → Add upload preset. Set Signing mode: Unsigned,
choose a folder such as
sea-reports, and (recommended) restrict Allowed formats tojpg, jpeg, png, heic, webp, mp4, movand set a maximum file size. Save, and copy the preset name. - Put both in
data/config.json:
"uploads": { "cloudName": "your-cloud-name", "uploadPreset": "your-preset", "maxFiles": 6, "maxImageMB": 10, "maxVideoMB": 100 }A drop zone then appears on reports and corrections, with previews, size checks, progress bars and automatic retry. Without these settings it stays hidden and visitors are pointed to the Google form.
Good to know: an unsigned preset lets anyone who loads the page upload files to your Cloudinary folder, which is normal for public report forms. Keep the format and size limits on the preset, check the folder now and then, and delete anything that isn't a report. Uploaded files are reachable by anyone who has their link, so treat them as public unless you change the delivery type.
The Google form link (forms.gle/AdPERyFyGwQKvwty6) is set in "googleForm"; replace it if SEA gets
its own form.
Site copy avoids dashes and hyphenated compounds (for example "severe convective storm
climatology", "real time"). Hyphens remain only where they belong to a name: DOST-PAGASA, the
Skew-T Hodograph column, ORCID and DOI identifiers, and file names.
- Brand (from the SEA logo): navy
#011339, white#F8F8F8, steel#A8B8D8. All page chrome uses only these and darker/lighter navy steps. - Data (event types): tornado
#D95926, hail#3987E5, waterspout#199E70. These were checked with a colour-vision-deficiency validator against the navy surfaces and pass for all pairs, which matters on a map where every colour sits next to every other. Intensity is shown by marker size and text labels, not by extra colours.
- Himawari imagery: NICT / JMA (himawari8.nict.go.jp). The page switches to infrared at night (18:00–06:00 PHT) and loads only when the panel is scrolled into view.
- Forecast soundings: PAGASA WRF,
{Station}/{Station}_d02_f{HHH}.png. - Basemap: © OpenStreetMap contributors © CARTO. CARTO's dark tiles need a free key since
25 September 2026: get one at https://carto.com/basemaps/apikey/, restrict it to your site's host
(for example
yourname.github.io), and put it indata/config.json→basemap.cartoKey. For testing on your computer, add a second key restricted tolocalhostascartoKeyLocal. Without a key, or if CARTO refuses it, the maps switch to OpenStreetMap tiles, darkened to match the site.
index.html archive.html statistics.html research.html about.html contact.html 404.html
css/style.css
js/sea-data.js shared loader + normaliser (used by every data page)
js/charts.js dependency-free SVG bar charts with tooltips and table views
js/main.js navigation, scroll reveal, dataset switch and data-source badges
js/home.js js/archive.js js/archive-extra.js js/stats.js js/research.js js/about.js js/form.js
data/config.json data/research.json data/leader.json data/sample/*.csv
data/ongoing/*.csv + meta.json (copy of the sheet) data/swap/ (DR4, filled by the fetch)
assets/img/ logo, emblem, favicons and social card (cut from the official SEA logo)
assets/vendor/leaflet/ Leaflet 1.9.4, served locally (no CDN dependency)
tools/fetch_swap.py tools/fetch_ongoing.py
.github/workflows/deploy.yml
Website code: MIT (LICENSE). SWAP data: © the Project Leader, CC BY 4.0 — cite per the Research
page. SEA C1 (the ongoing archive): CC BY 4.0, cited with the access date (Research page). Leaflet: BSD-2-Clause (assets/vendor/leaflet/LICENSE). The SEA logo belongs to the project.