CLI Reference¶
The speclib command-line tool provides batch operations for ingestion, search, export, and serving.
Commands¶
speclib ingest¶
Ingest spectra from an upstream source.
| Argument | Description |
|---|---|
source |
Adapter name: usgs, ecostress, aster, emit |
--config |
Path to YAML configuration file |
speclib search¶
Search the library catalog.
| Argument | Description |
|---|---|
query |
Search string (name, material, description) |
--category |
Filter by category: MINERAL, VEGETATION, SOIL, MANMADE, KY_INVASIVE |
speclib export¶
Export a spectrum to a target format.
| Argument | Description |
|---|---|
spectrum_id |
Unique spectrum identifier |
--format |
Output format: esl, sli, specpr, ascii, json |
--output |
Output file path |
speclib resample¶
Resample a spectrum to a target sensor.
speclib build¶
Generate static web viewer files from the archive.
speclib serve¶
Start the FastAPI development server.