Run it
Running on this server. Also on Live demos.
Source feed: 2.5_day.geojson · USGS Earthquake Hazards Program
Waiting for you. Pick your settings and press Run pipeline.
- Source updated
- –
- Fetched
- –
- Published
- –
- Newest quake
- –
Latest in the published table
What a run does
- Fetch. Picks the smallest USGS summary feed that holds your magnitude and time window, with one retry. A feed under 1.5 MB is cached and shared for 60 seconds, the feeds’ own update interval.
- Reshape. Turns each GeoJSON feature into a nine-field row (id, magnitude, place, time, longitude, latitude, depth, tsunami flag, link), then keeps the rows at or above your magnitude and inside your region’s bounding box.
- Validate. Checks coordinates, magnitude and a unique id on every row; rejected rows are counted in the log.
- Load. Sorts the clean rows by magnitude and builds the run’s report: the count, the largest quake, the six most recent and up to 1,500 points for the map.
- Publish. Up to 3,000 cleaned rows, largest first, become the site’s public dataset, downloadable as CSV or GeoJSON, with the recent runs alongside.
Why it’s built this way
The USGS summary feeds are GeoJSON, regenerated every minute. The job notes when the copy it read was generated, shares a cached copy of each feed under 1.5 MB for 60 seconds, and retries a failed fetch once before it stops the run. The region filter is a bounding-box test on longitude and latitude, which is why the region names say approximate.
The filters pass rows with missing values on to validation instead of quietly dropping them. There a row is rejected for a missing coordinate, a latitude beyond ±90° or longitude beyond ±180°, a magnitude that isn’t a number, or a blank or repeated event id, and the log reports how many were rejected.
Every row in the download keeps its USGS event id and link, the GeoJSON carries depth as each point’s third coordinate, and each download is tied to the run that produced it for up to an hour, so the file comes from the same rows as the map and report.