AIMBAT defaults
AIMBAT behaviour can be customised via the following settings. Each setting can be overridden on a per-project basis (in order of precedence):
- Environment variables of the form
AIMBAT_<SETTING_NAME>(e.g.AIMBAT_LOG_LEVEL=DEBUG). - A
.env1 file in the current working directory (e.g.AIMBAT_LOG_LEVEL=DEBUG).
| Environment Variable | Default | Description |
|---|---|---|
AIMBAT_BANDPASS_APPLY |
False |
Whether to apply bandpass filter to seismograms. |
AIMBAT_BANDPASS_FMAX |
2.0 |
Maximum frequency for bandpass filter (ignored if bandpass_apply is False). |
AIMBAT_BANDPASS_FMIN |
0.05 |
Minimum frequency for bandpass filter (ignored if bandpass_apply is False). |
AIMBAT_CONTEXT_WIDTH |
20.0 |
Context padding to apply before and after the time window. |
AIMBAT_DB_URL |
sqlite+pysqlite:///aimbat.db |
AIMBAT database url (default value is derived from project). |
AIMBAT_LOG_LEVEL |
INFO |
Logging level. Valid levels (from most to least verbose): TRACE, DEBUG, INFO, SUCCESS, WARNING, ERROR, CRITICAL. |
AIMBAT_LOGFILE |
aimbat.log |
Log file location. |
AIMBAT_MCCC_DAMP |
0.1 |
Damping factor for MCCC algorithm. |
AIMBAT_MCCC_MIN_CC |
0.5 |
Minimum correlation coefficient required to include a pair in the MCCC inversion. |
AIMBAT_MIN_CC |
0.5 |
Initial minimum cross correlation coefficient threshold for ICCS selection. |
AIMBAT_MIN_ID_LENGTH |
2 |
Minimum length of ID string. |
AIMBAT_PROJECT |
aimbat.db |
AIMBAT project file location (ignored if db_url is specified). |
AIMBAT_SAC_PICK_HEADER |
t0 |
SAC header field where initial pick is stored. |
AIMBAT_SAMPLEDATA_DIR |
sample-data |
Directory to store downloaded sample data. |
AIMBAT_SAMPLEDATA_SRC |
https://github.com/pysmo/data-example/archive/refs/heads/aimbat_v2.zip |
URL where sample data is downloaded from. |
AIMBAT_RAMP_WIDTH |
0.1 |
Width of taper ramp up and down as a fraction of the window length. |
AIMBAT_WINDOW_POST |
15.0 |
Initial relative end time of window. |
AIMBAT_WINDOW_PRE |
-15.0 |
Initial relative begin time of window. |
AIMBAT_TUI_DARK_THEME |
catppuccin-mocha |
TUI dark theme name (from available Textual themes). |
AIMBAT_TUI_LIGHT_THEME |
catppuccin-latte |
TUI light theme name (from available Textual themes). |
Tip
To view the settings currently in use, run aimbat utils settings.
-
Literally a file called
.env(not<SOMETHING>.env). ↩