sst.cli¶
Command-line interface for running the SST ETL workflow.
run(sst=Path('data/sst_sample.csv'), enso=Path('data/nino34_sample.csv'), out_dir=Path('artifacts'), start='2000-01')
¶
Run the SST ETL workflow end-to-end.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sst
|
Path
|
Location of the SST CSV file to ingest. |
"data/sst_sample.csv"
|
enso
|
Path
|
Location of the ENSO index CSV file to ingest. |
"data/nino34_sample.csv"
|
out_dir
|
Path
|
Directory where generated summary artifacts are written. |
"artifacts"
|
start
|
str
|
Earliest date to retain after joining the SST and ENSO data. Parsed
to a timestamp via :func: |
"2000-01"
|
Returns:
| Type | Description |
|---|---|
None
|
Writes a metrics CSV and trend plot to |
Source code in src/sst/cli.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |