/AVO-alarms

python codes used for geophysical alarms at AVO

Primary LanguagePython

AVO-alarms

Python codes used for geophysical alarms at AVO. Currently (2023-Sep-06) running on Python 3.8.17

Python Dependencies

  • pandas
  • obspy
  • Basemap
  • cartopy
  • PIL (pillow)
  • xlrd
  • dotenv
  • shapely
  • utm
  • scikit-learn
  • enveloc (only for Tremor module)
  • shapefile (for Pilot_Report module)
  • beautifulsoup4 (for SO2, NOAA_CIMSS, & SIGMET modules)
  • tomputils (optional for Mattermost)

Running it...

You'll need to edit .env_example with the relevant system parameters and rename the file .env
These variables get committed to environment variables when importing anything from /alarm_codes

Run the code:
main.py <alarm_config> <datetime>
For example:
./main.py Pavlof_RSAM_config 201701020205

It can also be run without a datestamp, in which case it will use the most recent minute as its time.

An example of how we run a cron minutely on the Cleveland infrasound array, CLCO:
* * * * * cd /alarms; python main.py CLCO_Infrasound_config > /dev/null 2>&1

Notifications:

Edit the .distribution_example.xlsx to include the relevant recipient addresses and rename to distribution.xlsx
It is important that column headers match the name of the alarm config file names (but replacing _ with a space)