FDSN seismic events — introduction#
The FDSN (International Federation of Digital
Seismograph Networks) event web service is the common standard that
seismological data centres expose for querying earthquake (and other
seismic-event) catalogs. earthlens ships a single fdsn backend that
speaks this standard to six networks through one
obspy client — because they all answer the
identical FDSN-event protocol, one code path covers them all.
This page orients the backend. For the hands-on download walkthrough see Usage; the rendered API is the Reference page.
Why it matters here#
Every other earthlens backend returns gridded data — a raster or a NetCDF/Zarr array (CHC rainfall, ERA5, CMEMS ocean fields, GEE imagery). FDSN is different in two ways that shape the backend:
-
The output is a vector table, not a grid. A seismic-event query returns a list of point features — one row per event, each with a time, a location, a depth, a magnitude, and a
Pointgeometry. So FDSN is the package's firstvectorbackend (FDSN.OUTPUT_KIND == "vector"), anddownload()returns a pyramidsFeatureCollection(ageopandas.GeoDataFramesubclass) rather than writing a raster. Because there is no meaningful gridded reduction of an event table, theEarthLensfacade rejects anaggregate=argument for this backend withNotImplementedError. -
There is no dataset catalog to curate. FDSN is a fixed query protocol, not a 600-dataset archive. The entire "catalog" is a six-row provider-dispatch table mapping a user-facing network name to an
obspyURL mapping. There is norefresh/probe/audittooling and no growth task — adding another network later (ORFEUS, GFZ, …) is a hand-edit of one YAML row.
The networks#
Key (variables=[...]) |
Network | Best for |
|---|---|---|
USGS |
USGS ComCat (United States Geological Survey) | the canonical global earthquake catalog; the default |
EMSC |
EMSC seismicportal | European-Mediterranean events; fast preliminary solutions |
INGV |
Istituto Nazionale di Geofisica e Vulcanologia | Italy + volcano monitoring; reports much smaller magnitudes |
EARTHSCOPE |
EarthScope (ex-IRIS DMC) | the global archive; IRIS is the legacy alias and still resolves |
ISC |
International Seismological Centre | the global reviewed bulletin (definitive, but lags real time) |
GEONET |
GeoNet | New Zealand seismic network |
Each is selected by passing its key in variables — for this backend
variables is the list of seismic networks, not data-variable
names (an intentional, documented overload; see Usage).
Authentication#
None for the common path. All six networks expose public FDSN
event services, so a default query needs no credentials at all. The
single exception is EarthScope, whose restricted endpoints can take an
optional access token; earthlens resolves it from an explicit
earthscope_token= argument, the EARTHSCOPE_TOKEN environment
variable, or a ~/.earthscope_token file, and only uses it for a
provider whose catalog row declares needs_token: true. None of the
bundled public networks do.
What a query returns#
One FeatureCollection (CRS EPSG:4326), unioned across the requested
networks, with these columns:
| Column | Type | Meaning |
|---|---|---|
event_id |
str | provider-side event identifier |
time |
datetime (UTC) | origin time |
longitude / latitude |
float | epicentre, degrees |
depth_km |
float | hypocentre depth in kilometres (obspy reports metres; converted here) |
magnitude |
float | preferred magnitude value |
magnitude_type |
str | e.g. Mw, mb, Ml |
event_type |
str | e.g. earthquake, explosion |
status |
str | origin evaluation status (preliminary / reviewed / …) |
provider |
str | the network key the row came from |
geometry |
Point | shapely.Point(longitude, latitude) |
As a side effect, download() also writes one vector file per network
to the output directory (GeoPackage by default, or GeoJSON).
Cost#
Free. The FDSN event services are public, operated by the respective data centres; usage terms and recommended attribution are documented per network (USGS ComCat, EMSC, INGV, EarthScope).
References#
- FDSN web services specification: https://www.fdsn.org/webservices/
- obspy FDSN client: https://docs.obspy.org/packages/obspy.clients.fdsn.html
- USGS ComCat: https://earthquake.usgs.gov/fdsnws/event/1/
- EMSC seismicportal: https://www.seismicportal.eu/fdsnws/event/1/
- INGV: https://webservices.ingv.it/fdsnws/event/1/
- EarthScope: https://service.earthscope.org/fdsnws/event/1/
- earthlens FDSN usage: Usage
- earthlens FDSN API: Reference