Downloading the QuakeScope pick catalogue for a region and a period¶
The first notebook reads one network-month. This one does what a study needs: choose stations by place and time, mirror every partition that covers them, query the mirror, check which station-days were actually processed, and export for an associator. Anonymous throughout; nothing here needs an AWS account. Coverage comes from the public availability table (one row per station-day), and duplicate rows are dropped on read.
Worked example: the Monte Cristo Range, Nevada, M6.5 of 2020-05-15, with a 1.5 degree box and the two months from May 1 to June 30. Change the four values in section 2 and everything below follows.
| bucket | s3://quakescope-picks-2026, us-east-2, public-read |
| catalogue | western: 1986 to September 2026, PhaseNet original, P and S thresholds 0.2 (three campaign eras, the fill stations, the October re-read and repairs, all under one prefix). Set CATALOGUE to obs or quakescope-2025 and the same cells work |
| layout | <campaign>/picks/network=<NET>/year=<YYYY>/month=<MM>/<shard_id>.parquet, plus manifests/, runs/, stations.parquet |
| reference | docs/data_access.md |
Runtime: about ten minutes on a laptop, most of it the download; re-runs skip files already mirrored.
1. Setup¶
import datetime, json, time
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
import duckdb
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import s3fs
BUCKET = "quakescope-picks-2026"
fs = s3fs.S3FileSystem(anon=True)
MIRROR = Path("quakescope_mirror") # local tree, same layout as the bucket
MIRROR.mkdir(exist_ok=True)
CATALOGUE = "western" # or "obs", or "quakescope-2025" (the 2025 instance picks)
C_P, C_S = "#2a78d6", "#eb6834"
plt.rcParams.update({"figure.dpi": 110, "axes.spines.top": False, "axes.spines.right": False})
2. Choose a region and a period¶
Four values. The box is in degrees; the period is inclusive of both dates.
CENTER_LAT, CENTER_LON, HALF_DEG = 38.169, -117.850, 1.5 # Monte Cristo Range M6.5, 2020-05-15
START, END = datetime.date(2020, 5, 1), datetime.date(2020, 6, 30)
LAT0, LAT1 = CENTER_LAT - HALF_DEG, CENTER_LAT + HALF_DEG
LON0, LON1 = CENTER_LON - HALF_DEG, CENTER_LON + HALF_DEG
print(f"box {LAT0:.2f} to {LAT1:.2f} N, {LON0:.2f} to {LON1:.2f} E, {START} to {END}")
box 36.67 to 39.67 N, -119.35 to -116.35 E, 2020-05-01 to 2020-06-30
Stations in the box, operating in the period¶
stations.parquet is the table the catalogue was planned from. start_date
and end_date are Parquet dates, so they compare directly with a
datetime.date; a station still operating carries 3000-01-01 rather than a
null, so a filter like end_date >= START keeps it instead of dropping it.
Until 2026-09-29 these two columns were a YYYY.DDD float, which is kept
beside them as start_yearday and end_yearday. Do not decode that float by
formatting it as a string: str(2010.21) is "2010.21" and reads as day 21,
where the value means day 210.
stations = pd.read_parquet(f"s3://{BUCKET}/{CATALOGUE}/stations.parquet", storage_options={"anon": True})
if stations.start_date.dtype == object and isinstance(stations.start_date.iloc[0], str):
# quakescope-2025 keeps the database's zero-padded "YYYY.DDD" strings ("2019.227"); parse, do not split
for col in ("start_date", "end_date"):
stations[col] = stations[col].map(lambda s: datetime.datetime.strptime(s, "%Y.%j").date())
in_box = stations[stations.latitude.between(LAT0, LAT1) & stations.longitude.between(LON0, LON1)]
# Dates compare with dates. No decoding, which is the point of the change.
sel = in_box[(in_box.start_date <= END) & (in_box.end_date >= START)].copy()
# Network from `id`, not `network_code`: tables written before the 2026-10 fix
# carry CSV-parse damage in the code columns; `id` never did.
sel["net"] = sel["id"].str.split(".").str[0]
NETWORKS = sorted(sel.net.unique())
print(f"{len(in_box):,} station-locations in the box, {len(sel):,} operating in the period, "
f"{len(NETWORKS)} networks: {NETWORKS}")
print(sel.net.value_counts().to_string())
553 station-locations in the box, 166 operating in the period, 10 networks: ['BK', 'CI', 'GS', 'IM', 'LB', 'NC', 'NN', 'NP', 'SN', 'ZG'] net NN 49 NC 44 NP 34 IM 13 SN 7 BK 6 CI 6 LB 3 GS 2 ZG 2
fig, ax = plt.subplots(figsize=(6.5, 6))
for net, g in sel.groupby("net"):
ax.scatter(g.longitude, g.latitude, s=14, label=f"{net} ({len(g)})")
ax.plot(CENTER_LON, CENTER_LAT, marker="*", ms=16, color="#16150f", mec="w", ls="none", label="mainshock")
ax.set_xlim(LON0, LON1); ax.set_ylim(LAT0, LAT1); ax.set_aspect(1 / np.cos(np.radians(CENTER_LAT)))
ax.set_xlabel("longitude"); ax.set_ylabel("latitude")
ax.legend(fontsize=7.5, ncol=2, frameon=False, loc="lower left")
ax.set_title(f"{len(sel)} station-locations operating {START} to {END}", loc="left", fontsize=10.5)
fig.tight_layout()
3. Which partitions cover them¶
A partition is (campaign, network, year, month). The era decides the
campaign; a network partition holds every station of that network, so the
station filter is applied to the rows after the download (section 5).
def partitions(networks, start, end):
out = []
d = start.replace(day=1)
while d <= end:
for net in networks:
out.append((CATALOGUE, net, d.year, d.month))
d = (d.replace(day=28) + datetime.timedelta(days=4)).replace(day=1)
return out
PARTS = partitions(NETWORKS, START, END)
print(f"{len(PARTS)} partitions, e.g. {PARTS[:3]}")
20 partitions, e.g. [('western', 'BK', 2020, 5), ('western', 'CI', 2020, 5), ('western', 'GS', 2020, 5)]
4. Mirror them¶
One listing per partition, then every missing file in parallel. s3fs
fetches concurrently and lands at 15 to 20 MB/s from a laptop; the AWS CLI is
the same speed (aws s3 sync --no-sign-request <s3 prefix> <local dir>, one
line per partition, printed below for people who prefer a shell).
def sync(camp, net, year, month):
# Mirror one partition; return (files fetched, bytes fetched, files already present).
prefix = f"{camp}/picks/network={net}/year={year}/month={month:02d}/"
local = MIRROR / prefix
local.mkdir(parents=True, exist_ok=True)
try:
remote = fs.ls(f"{BUCKET}/{prefix}", detail=True) # one LIST
except FileNotFoundError: # no picks were written for this partition
remote = []
have = {p.name for p in local.glob("*.parquet")}
todo = [o for o in remote if Path(o["name"]).name not in have]
if todo:
fs.get([o["name"] for o in todo], [str(local / Path(o["name"]).name) for o in todo])
return len(todo), sum(o["size"] for o in todo), len(have)
t0 = time.time(); n_new = b_new = n_have = 0
for camp, net, year, month in PARTS:
n, b, h = sync(camp, net, year, month)
n_new += n; b_new += b; n_have += h
print(f"fetched {n_new:,} files, {b_new / 1e6:,.0f} MB in {time.time() - t0:.0f} s; {n_have:,} already mirrored")
empty = [p for p in PARTS if not any((MIRROR / f"{p[0]}/picks/network={p[1]}/year={p[2]}/month={p[3]:02d}").glob("*.parquet"))]
print(f"{len(empty)} of {len(PARTS)} partitions hold no picks at all: {sorted({p[1] for p in empty})}")
print("\nequivalent shell commands:")
for camp, net, year, month in PARTS[:3]:
p = f"{camp}/picks/network={net}/year={year}/month={month:02d}/"
print(f"aws s3 sync --no-sign-request s3://{BUCKET}/{p} {MIRROR}/{p}")
print(f"... ({len(PARTS)} partitions)")
fetched 0 files, 0 MB in 2 s; 1,821 already mirrored 2 of 20 partitions hold no picks at all: ['ZG'] equivalent shell commands: aws s3 sync --no-sign-request s3://quakescope-picks-2026/western/picks/network=BK/year=2020/month=05/ quakescope_mirror/western/picks/network=BK/year=2020/month=05/ aws s3 sync --no-sign-request s3://quakescope-picks-2026/western/picks/network=CI/year=2020/month=05/ quakescope_mirror/western/picks/network=CI/year=2020/month=05/ aws s3 sync --no-sign-request s3://quakescope-picks-2026/western/picks/network=GS/year=2020/month=05/ quakescope_mirror/western/picks/network=GS/year=2020/month=05/ ... (20 partitions)
5. Query the mirror¶
DuckDB over the local tree, with the partition keys read from the paths.
DISTINCT ON (tid, cha, pha, peak) drops the duplicate rows that interrupted
Spot attempts left in the bucket (about 64 M of 2.13 B western rows on
2026-10-13; the picker is deterministic, so a repeated key is the same pick). The
station filter is a join against the selection table, so nothing outside the
box is counted. Everything comes back aggregated; the raw rows are only pulled
where they are needed.
con = duckdb.connect()
con.register("sel", sel[["id", "network_code", "station_code", "latitude", "longitude", "elevation"]])
con.sql(f'''
CREATE OR REPLACE VIEW picks AS
SELECT DISTINCT ON (p.tid, p.cha, p.pha, p.peak) p.*, s.latitude, s.longitude
FROM read_parquet('{MIRROR}/{CATALOGUE}/picks/**/*.parquet', hive_partitioning=1) p
JOIN sel s ON p.tid = s.id
WHERE p.peak >= TIMESTAMP '{START}' AND p.peak < TIMESTAMP '{END + datetime.timedelta(days=1)}'
''')
t0 = time.time()
totals = con.sql("SELECT pha, count(*) AS picks, count(DISTINCT tid) AS stations, round(avg(conf), 3) AS mean_conf "
"FROM picks GROUP BY pha ORDER BY pha").df()
print(f"{time.time() - t0:.1f} s")
totals
0.7 s
| pha | picks | stations | mean_conf | |
|---|---|---|---|---|
| 0 | P | 2230047 | 98 | 0.633 |
| 1 | S | 2149392 | 93 | 0.563 |
per_station = con.sql('''
SELECT tid, any_value(cha) AS band,
count(*) FILTER (pha = 'P') AS p_picks,
count(*) FILTER (pha = 'S') AS s_picks,
count(*) FILTER (conf >= 0.5) AS confident,
count(DISTINCT date_trunc('day', peak)) AS days_with_picks
FROM picks GROUP BY tid ORDER BY p_picks DESC
''').df()
print(f"{len(per_station)} stations with picks of {len(sel)} selected")
per_station.head(12)
98 stations with picks of 166 selected
| tid | band | p_picks | s_picks | confident | days_with_picks | |
|---|---|---|---|---|---|---|
| 0 | NN.MCM08. | HH | 170503 | 189137 | 238925 | 36 |
| 1 | NN.MC02. | HN | 150834 | 151159 | 214875 | 37 |
| 2 | NN.MCM05. | HH | 137194 | 153690 | 194558 | 36 |
| 3 | GS.MCA04.00 | HH | 132567 | 124616 | 189088 | 45 |
| 4 | NN.MCA06. | HH | 119784 | 139576 | 175237 | 41 |
| 5 | NN.MCM07. | HH | 117041 | 142072 | 166067 | 37 |
| 6 | NN.MC01. | HN | 114583 | 113225 | 171055 | 43 |
| 7 | NN.MC03. | HN | 109340 | 111622 | 163052 | 43 |
| 8 | NN.BRS2. | HH | 64544 | 64939 | 99097 | 47 |
| 9 | IM.NV11. | SH | 57078 | 64875 | 68279 | 61 |
| 10 | NN.LHV. | HH | 41308 | 45433 | 52706 | 61 |
| 11 | IM.NV31. | BH | 36330 | 38569 | 46554 | 61 |
daily = con.sql('''
SELECT date_trunc('day', peak) AS day, pha, count(*) AS n
FROM picks WHERE conf >= 0.5 GROUP BY day, pha ORDER BY day
''').df().pivot(index="day", columns="pha", values="n").fillna(0)
fig, ax = plt.subplots(figsize=(11, 3.4))
for ph, c in (("P", C_P), ("S", C_S)):
ax.plot(daily.index, daily[ph], lw=1.4, color=c, label=ph)
ax.axvline(pd.Timestamp("2020-05-15"), color="#8a8a8a", lw=1, ls="--")
ax.set_yscale("log"); ax.set_ylabel("picks per day, conf >= 0.5"); ax.legend(frameon=False)
ax.set_title("the box, all selected stations: the M6.5 on May 15 and its aftershocks", loc="left", fontsize=10.5)
fig.tight_layout()
The threshold is yours to choose¶
Everything at or above 0.2 is stored. How much a higher floor removes depends on the station and the sequence, so look before choosing.
sweep = con.sql('''
SELECT t.thr, count(*) FILTER (p.conf >= t.thr AND pha = 'P') AS P, count(*) FILTER (p.conf >= t.thr AND pha = 'S') AS S
FROM picks p, (SELECT unnest([0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]) AS thr) t
GROUP BY t.thr ORDER BY t.thr
''').df()
sweep["P_kept"] = (sweep.P / sweep.P.iloc[0]).round(3); sweep["S_kept"] = (sweep.S / sweep.S.iloc[0]).round(3)
sweep
| thr | P | S | P_kept | S_kept | |
|---|---|---|---|---|---|
| 0 | 0.2 | 2230047 | 2149392 | 1.000 | 1.000 |
| 1 | 0.3 | 1843032 | 1757605 | 0.826 | 0.818 |
| 2 | 0.4 | 1583714 | 1457733 | 0.710 | 0.678 |
| 3 | 0.5 | 1358186 | 1193717 | 0.609 | 0.555 |
| 4 | 0.6 | 1199780 | 975287 | 0.538 | 0.454 |
| 5 | 0.7 | 1052323 | 747816 | 0.472 | 0.348 |
| 6 | 0.8 | 880013 | 479467 | 0.395 | 0.223 |
| 7 | 0.9 | 612228 | 169989 | 0.275 | 0.079 |
6. Coverage: which station-days were read¶
A station-day with no rows may mean the archive held nothing, that the data
held no arrival above 0.2, or that the campaign never read it. The
availability table separates them: one row per station-day inside each
station's FDSN operating epochs, built from every job manifest, public, one
file per network at <catalogue>/availability/network=<NET>/availability.parquet.
status |
meaning |
|---|---|
loaded |
read and picked; npks picks that day, 0 means data and no arrival above 0.2 |
no_data |
the archive listing held nothing that day |
not_found |
the archive has no such network-year |
empty_read |
an object exists but holds no pickable band (detail names what it holds) |
unread |
attempted, not read (detail: too_big, read_error, ...) |
unknown |
inside the station's epochs, no record either way |
The table covers days inside a station's FDSN channel epochs, which can be
narrower than the start_date to end_date window of stations.parquet. Days
in the window but outside every epoch have no row; the cells below call them
outside FDSN epochs.
unknown is mostly shards from before image d0ccf9b (2026-10-06), which
recorded only what they read; the strong-motion network NP, which had no data
in a 1,408-day sample and was not re-read; and the networks our account may
not read (TD, EO, LH). The 2025 catalogue's table is not built yet; its
manifests carry records only, so a 2025 station-day is either read or unknown.
def availability(catalogue, net):
try:
return pd.read_parquet(f"s3://{BUCKET}/{catalogue}/availability/network={net}/availability.parquet",
storage_options={"anon": True})
except FileNotFoundError:
return pd.DataFrame(columns=["tid", "date", "status", "cha", "npks", "detail"])
t0 = time.time()
av = pd.concat([availability(CATALOGUE, n) for n in NETWORKS], ignore_index=True)
av["day"] = pd.to_datetime(av.date).dt.date
av = av[av.tid.isin(sel.id) & (av.day >= START) & (av.day <= END)]
print(f"{len(av):,} station-days from {len(NETWORKS)} availability tables in {time.time() - t0:.0f} s")
# Expected station-days: each selected station on each day of the period it was operating.
days = pd.date_range(START, END, freq="D").date
expected = pd.DataFrame([(s.id, d) for s in sel.itertuples() for d in days
if s.start_date <= d <= s.end_date], columns=["tid", "day"])
have_picks = con.sql("SELECT DISTINCT tid, CAST(date_trunc('day', peak) AS DATE) AS day FROM picks").df()
have_picks["day"] = pd.to_datetime(have_picks.day).dt.date
cov = (expected.merge(av[["tid", "day", "status", "npks", "detail"]], on=["tid", "day"], how="left")
.merge(have_picks.assign(has_picks=True), on=["tid", "day"], how="left"))
NO_DATA = {"no_data", "not_found", "empty_read", "no_channel"}
cov["coverage"] = np.select(
[cov.has_picks.eq(True), cov.status.eq("loaded"), cov.status.isin(NO_DATA), cov.status.eq("unread"),
cov.status.isna()],
["picks", "read, no pick", "no data in archive", "attempted, not read", "outside FDSN epochs"], "unknown")
# "outside FDSN epochs": the planning table's start/end window covers the day, but none of the
# station's FDSN channel epochs does, so the availability table has no row for it.
print(f"{len(expected):,} expected station-days on {sel.id.nunique()} stations\n")
print(cov.coverage.value_counts().to_string())
print("\nby availability status:")
print(cov.status.fillna("(no row: outside FDSN epochs)").value_counts().to_string())
by_station = cov.groupby("tid").coverage.value_counts().unstack(fill_value=0)
never = by_station[by_station.get("picks", 0) + by_station.get("read, no pick", 0) == 0]
print(f"\n{len(never)} of {len(by_station)} stations have no read day at all in the period")
print(never.head(10).to_string())
7,166 station-days from 10 availability tables in 67 s
9,533 expected station-days on 166 stations coverage picks 4625 outside FDSN epochs 2367 unknown 1346 no data in archive 1015 read, no pick 180 by availability status: status loaded 4743 (no row: outside FDSN epochs) 2367 unknown 1408 no_data 1015 68 of 166 stations have no read day at all in the period coverage no data in archive outside FDSN epochs picks read, no pick unknown tid BK.HELL. 0 61 0 0 0 BK.HELL.00 61 0 0 0 0 BK.HELL.S0 0 61 0 0 0 BK.KCC. 0 61 0 0 0 CI.GRA.2C 61 0 0 0 0 CI.MLAC.2C 61 0 0 0 0 CI.TIN.2C 61 0 0 0 0 IM.NVAR.FB 61 0 0 0 0 LB.TPH. 0 61 0 0 0 NC.MCY.20 0 61 0 0 0
order = by_station.sort_values("picks", ascending=False).index if "picks" in by_station else by_station.index
LEVELS = ["outside FDSN epochs", "unknown", "attempted, not read", "no data in archive", "read, no pick", "picks"]
code_of = {k: i for i, k in enumerate(LEVELS)}
grid = cov.pivot(index="tid", columns="day", values="coverage").reindex(order).apply(lambda c: c.map(code_of)).astype(float)
fig, ax = plt.subplots(figsize=(12, 0.09 * len(grid) + 1.4))
cmap = plt.matplotlib.colors.ListedColormap(["#ffffff", "#e7e7e2", "#c0392b", "#b9b6ad", "#f6c77a", "#2a78d6"])
im = ax.imshow(grid.values, aspect="auto", cmap=cmap, vmin=-0.5, vmax=len(LEVELS) - 0.5, interpolation="nearest")
ax.set_yticks([]); ax.set_ylabel(f"{len(grid)} stations")
xt = np.arange(0, len(days), 10); ax.set_xticks(xt); ax.set_xticklabels([str(days[i]) for i in xt], fontsize=8)
cb = fig.colorbar(im, ax=ax, ticks=range(len(LEVELS)), fraction=0.02, pad=0.01)
cb.ax.set_yticklabels(LEVELS, fontsize=8)
ax.set_title("station-day coverage from the availability table (stations sorted by days with picks)", loc="left", fontsize=10.5)
fig.tight_layout()
Runs of days that are unknown or attempted, not read on stations that
otherwise have picks are the ones worth asking about. The next cell lists them.
gaps = []
for tid, g in cov.sort_values("day").groupby("tid"):
if (g.coverage == "picks").sum() < 10:
continue
run = []
for row in g.itertuples():
if row.coverage in ("unknown", "attempted, not read"):
run.append(row.day)
elif run:
gaps.append((tid, run[0], run[-1], len(run))); run = []
if run:
gaps.append((tid, run[0], run[-1], len(run)))
gaps = pd.DataFrame(gaps, columns=["tid", "first_day", "last_day", "days"])
long_gaps = gaps[gaps.days >= 3].sort_values(["first_day", "tid"])
print(f"{len(long_gaps)} gaps of 3+ days on stations that have picks")
long_gaps.head(20)
3 gaps of 3+ days on stations that have picks
| tid | first_day | last_day | days | |
|---|---|---|---|---|
| 13 | NN.QNBC. | 2020-05-02 | 2020-05-07 | 6 |
| 6 | NN.MC02. | 2020-06-12 | 2020-06-18 | 7 |
| 0 | CI.GRA. | 2020-06-27 | 2020-06-30 | 4 |
In western, a block of unknown days on a station that has picks either side
is most often a station-location the table lists but the archive does not hold
on those days (the table carries every location code the metadata ever
declared: BK.HELL., BK.HELL.00 and BK.HELL.S0 are three rows for one
instrument), or a day file the reader could not open (attempted, not read,
with the reason in detail). If a station you need shows unknown where you
know data exist, report it with this table at
https://github.com/SeisSCOPED/QuakeScope/issues; the archive is the arbiter,
by asking it for the day.
7. Export¶
Two shapes are useful downstream. A per-station-day summary for QC and
coverage statements, and the picks themselves in the columns an associator
expects. Both are written under export/.
EXPORT = Path("export"); EXPORT.mkdir(exist_ok=True)
cov.drop(columns=["has_picks"]).to_csv(EXPORT / "coverage_station_days.csv", index=False)
per_station.to_csv(EXPORT / "picks_per_station.csv", index=False)
# The picks, filtered to the box and the period, one file, all columns. Parquet keeps the types.
con.sql(f"COPY (SELECT * EXCLUDE (latitude, longitude) FROM picks ORDER BY peak) TO '{EXPORT}/picks.parquet' (FORMAT PARQUET)")
n = con.sql(f"SELECT count(*) FROM '{EXPORT}/picks.parquet'").fetchone()[0]
print(f"picks.parquet: {n:,} rows, {(EXPORT / 'picks.parquet').stat().st_size / 1e6:.0f} MB")
picks.parquet: 4,379,439 rows, 134 MB
For an associator¶
PyOcto takes a DataFrame with station, time, phase and probability;
GaMMA takes id, timestamp, type, prob and amp. Both want the
station table alongside. The mapping is the whole conversion; a confidence
floor of 0.5 is a reasonable starting point for association and is not the
catalogue's floor.
picks_df = pd.read_parquet(EXPORT / "picks.parquet")
assoc = picks_df[picks_df.conf >= 0.5]
pyocto_picks = pd.DataFrame({"station": assoc.tid.str.rstrip("."), # PyOcto keys stations as NET.STA[.LOC]
"time": assoc.peak, "phase": assoc.pha, "probability": assoc.conf})
pyocto_stations = sel.rename(columns={"id": "id", "latitude": "latitude", "longitude": "longitude", "elevation": "elevation"})
pyocto_stations = pyocto_stations.assign(id=pyocto_stations.id.str.rstrip("."))[["id", "latitude", "longitude", "elevation"]]
gamma_picks = pd.DataFrame({"id": assoc.tid, "timestamp": assoc.peak, "type": assoc.pha.str.lower(),
"prob": assoc.conf, "amp": assoc.amp})
pyocto_picks.to_parquet(EXPORT / "pyocto_picks.parquet"); pyocto_stations.to_csv(EXPORT / "pyocto_stations.csv", index=False)
gamma_picks.to_parquet(EXPORT / "gamma_picks.parquet")
print(f"{len(assoc):,} picks at conf >= 0.5 for association")
pyocto_picks.head()
2,551,903 picks at conf >= 0.5 for association
| station | time | phase | probability | |
|---|---|---|---|---|
| 4 | CI.TIN | 2020-05-01 00:00:46.408 | P | 0.708237 |
| 7 | NC.MEM | 2020-05-01 00:01:20.590 | S | 0.639534 |
| 16 | CI.GRA | 2020-05-01 00:05:00.018 | P | 0.809767 |
| 17 | CI.GRA | 2020-05-01 00:05:01.958 | S | 0.609104 |
| 20 | NN.LHV | 2020-05-01 00:06:19.318 | P | 0.834368 |
Running the associator is a separate step and a separate notebook:
seisbench_pyocto_ncedc.ipynb shows PyOcto
on picks of this shape.
8. Scaling up¶
The recipe above is the recipe at any size; only the byte counts change.
A whole network-year. Replace the month loop with the year:
aws s3 sync --no-sign-request s3://quakescope-picks-2026/western/picks/network=UW/year=2019/ quakescope_mirror/western/picks/network=UW/year=2019/
The whole western catalogue, 55.3 GB in 580,407 objects (Parquet footers and S3 listing, 2026-10-13), about two hours on a fast link:
aws s3 sync --no-sign-request s3://quakescope-picks-2026/western/picks/ quakescope_mirror/western/picks/
aws s3 cp --no-sign-request s3://quakescope-picks-2026/western/stations.parquet quakescope_mirror/western/
aws s3 sync --no-sign-request s3://quakescope-picks-2026/western/availability/ quakescope_mirror/western/availability/
The availability tables for all of western are about 0.1 GB.
The 2025 catalogue for the same stations is under quakescope-2025/picks/
with the same partitioning (88.3 GB in 42,570 objects for all 453 networks, S3 listing of 2026-10-19); its
stations.parquet keeps the YYYY.DDD date strings of the database.
Keeping a mirror current. Duplicate removal and compaction will rename objects without changing
picks; aws s3 sync re-run against the same
local tree fetches only what changed. Record the date of any pull you publish
from.
Reference for the layout, the rules and the known limits:
docs/data_access.md.
Progress of every campaign: the
dashboard.