pipeline
The pipeline module contains the top-level run_pipeline() function, which is the primary entry point for the library. It chains together all five pipeline stages — track propagation, spatial tiling, station discovery, waveform download, and optional processing — into a single call.
Most users will only need this module. The underlying stage functions are all importable directly if you need finer control over any individual step.
Parameters Reference
run_pipeline() accepts a large number of keyword arguments, all of which have sensible defaults. Here’s a summary grouped by stage:
Required
norad_id— NORAD catalog ID of the object (five-digit integer)start— analysis window start, as an ISO string ("2024-04-02T08:40:00Z") or adatetimeobjectend— analysis window end, same format asstartcache_dir— directory where TLE files will be cachedoutput_dir— base directory for all outputevent_name— name for this run, used as the output subfolder name
Propagation
lookback_days(default: 7) — how far back to search for a valid TLE before the analysis start timestep_seconds(default: 1) — time step between propagated track points in seconds
Tiling
chunk_km(default: 300.0) — along-track length of each download box in kmoverlap_km(default: 50.0) — overlap between adjacent boxes in kmcorridor_km(default: 100.0) — cross-track distance threshold for station filtering in kmpre_pad_minutes(default: 2.0) — time padding before the first track point in each boxpost_pad_minutes(default: 13.0) — time padding after the last track point in each box
Download
providers(default:("EARTHSCOPE", "SCEDC", "NCEDC")) — FDSN data providers to querychannel_priorities(default:("HHZ", "BHZ")) — channel preference orderlocation_priorities(default:("", "00", "10", "20")) — location code preference orderoverwrite_existing(default:False) — ifFalse, existing waveforms are skipped
Processing
apply_processing(default:False) — set toTrueto run the full processing chain after downloadfreqmin(default: 1.0) — bandpass lower corner in Hzfreqmax(default: 20.0) — bandpass upper corner in Hzcorners(default: 4) — bandpass filter orderzerophase(default:False) — causal filter; set toTruefor zero-phasewater_level(default: 60) — water level for response removaltaper_pct(default: 0.05) — taper fraction applied before response removal
Misc
username/password— Space-Track credentials; if not provided, loaded from environment variablesverbose(default:True) — print progress to stdout