1
0
Fork
You've already forked data-scripts
0
applecuckoo's miscellaneous data scripts
  • Python 100%
2025年12月14日 08:53:51 +13:00
.zed nzta road incidents fetcher + tfnsw cam fetcher 2025年11月07日 17:55:25 +13:00
flamingo flamingo/GBFS scraper 2025年11月23日 16:26:03 +13:00
geonet flamingo/GBFS scraper 2025年11月23日 16:26:03 +13:00
LICENSES flamingo/GBFS scraper 2025年11月23日 16:26:03 +13:00
lta LTA and stuff 2025年11月02日 20:33:52 +13:00
tfnsw nzta road incidents fetcher + tfnsw cam fetcher 2025年11月07日 17:55:25 +13:00
ultra nsw traffic cam query 2025年12月14日 08:53:51 +13:00
usgs LTA and stuff 2025年11月02日 20:33:52 +13:00
.gitignore cleanup 2025年11月02日 17:40:12 +13:00
contours-to-simplestyle.py Initial commit 2025年07月31日 21:38:37 +12:00
contours-to-wiki.py Initial commit 2025年07月31日 21:38:37 +12:00
feltrapid-from-geonet.py finish up scripts 2025年08月10日 21:55:42 +12:00
feltrapid-to-wiki.py finish up scripts 2025年08月10日 21:55:42 +12:00
feltrapidconvert.py more things 2025年08月13日 21:06:27 +12:00
feltrapidtosimplestyle.py more scripts 2025年08月08日 22:11:37 +12:00
geofence-to-simplestyle.py more scripts 2025年08月08日 22:11:37 +12:00
geonet-all-in-one-ultra.py cleanup 2025年11月02日 17:40:12 +13:00
geonet-all-in-one.py finish up scripts 2025年08月10日 21:55:42 +12:00
geonethelpers.py multi script 2025年08月15日 18:13:56 +12:00
LICENSE licensing 2025年07月31日 21:40:36 +12:00
lta-cam-fetcher-to-geojson.py LTA and stuff 2025年11月02日 20:33:52 +13:00
nz-covid-deaths.py more scripts 2025年08月08日 22:11:37 +12:00
nz_transline_to_wikijson.py more scripts 2025年08月08日 22:11:37 +12:00
nzta-cam-fetcher-to-geojson.py cleanup 2025年11月02日 17:40:12 +13:00
nzta-road-conditions.py cleanup 2025年11月02日 17:40:12 +13:00
nzta-road-incidents-fetcher-to-geojson.py flamingo/GBFS scraper 2025年11月23日 16:26:03 +13:00
nzta-vms-fetcher-to-geojson-auckland.py flamingo/GBFS scraper 2025年11月23日 16:26:03 +13:00
nzta-vms-fetcher-to-geojson.py flamingo/GBFS scraper 2025年11月23日 16:26:03 +13:00
onemap_sg_modified.json onemap thing 2025年12月07日 19:28:32 +13:00
README.md cleanup 2025年11月02日 17:40:12 +13:00
REUSE.toml onemap thing 2025年12月07日 19:28:32 +13:00
tasalert-to-ultra.py cleanup 2025年11月02日 17:40:12 +13:00
tfl-bike-scraper.py more things 2025年10月14日 21:01:32 +13:00
tfl_bike_dump.json more things 2025年10月14日 21:01:32 +13:00
tfnsw-cam-fetcher-to-geojson.py nzta road incidents fetcher + tfnsw cam fetcher 2025年11月07日 17:55:25 +13:00
tilde-data.csv multi script 2025年08月15日 18:13:56 +12:00
tilde-to-wiki-multi-ai-fix.py licensing 2025年08月30日 17:59:45 +12:00
tilde-to-wiki-multi.py licensing 2025年08月30日 17:59:45 +12:00
tilde-to-wiki.py licensing 2025年08月30日 17:59:45 +12:00
tumi_dump.md cleanup 2025年11月02日 17:40:12 +13:00
tumi_scrape.md cleanup 2025年11月02日 17:40:12 +13:00
tumiscraper.py cleanup 2025年11月02日 17:40:12 +13:00
usgs-shakemap-fetcher.py more things 2025年10月14日 21:01:32 +13:00

applecuckoo's miscellaneous data scripts

it is what it is, most of these have something to do with Wikimedia Commons but some are just there for fun. All of my wiki map scripts come with an 'unwrapped' simplestyle-only version which is then wrapped with the MediaWiki packaging for upload onto Wikimedia Commons.

Said unwrapped versions can be repurposed for use with various dataviz platforms, like Mapbox's geojson.io or Datawrapper

scripts include:

  • feltrapidtosimplestyle.py - adds GeoNet-esque simplestyle-spec styling to Felt Rapid data from GeoNet
  • feltrapid-to-wiki.py - same thing but takes that GeoJSON and encapsulates it in the MediaWiki map data format
  • contours-to-simplestyle.py - converts styling data in contour files generated by USGS ShakeMap1 to simplestyle-spec compatible styling
  • geonet-all-in-one.py - creates a file containing epicentre, felt rapid and shaking layers (if available) for an earthquake on GeoNet
flowchart TD
A[Start program with GeoNet public ID] --> B(Fetch epicentre from GeoNet quake API)
B --> C(Fetch Felt Rapid data)
C --> D{Try fetching Shaking Layers data for that particular earthquake}
D --> |404| E(Assemble *just* the epicentre and Felt Rapid data)
D --> |Everything else| F(Assemble the epicentre, Felt Rapid and contour data)
E --> G(Write to file)
F --> G

why on earth would you like to use this

these scripts could be useful for people wanting to cobble together cool visualisations. Also, it gives you a great excuse to play 'pretend journalist' by using the same tools that the mainstream media use...


  1. This script works with any set of MMI contours generated by the open-source USGS ShakeMap software. As such, this script doesn't just work with contours generated by the USGS, but also those generated by Geoscience Australia, Earth Sciences New Zealand/GeoNet, and any other agencies running the software. Keep in mind other agencies may not use the ShakeMap brand in public, for example Earth Sciences New Zealand uses the name 'Shaking Layers' to refer to their ShakeMap data. ↩︎