Rewrite to make it more modular

added veiws for area and single waveforms
added settings dialog
added MenuBar and populated with "View" "Settings" and "Help"
Help menu contains "About" currently

** ** WILL NOT RUN due to rewrite being incomplete ** **
This commit is contained in:
bryce
2025-08-30 19:41:31 +12:00
parent 9d5ba2d7c2
commit 613f017f41
22 changed files with 670 additions and 114 deletions

173
config/areas_config.py Normal file
View File

@@ -0,0 +1,173 @@
# DICTIONARY mapping area names to a list of station codes belonging to that area.
#
# Each station config in the list is a dictionary:
# {
# code: StationCode
# preferred_channel: channelCode
# preferred_location: locationCode
# }
AREAS_OF_INTEREST = {
"Northland & Auckland": [
],
"Waikato": [
],
"Hikaurangi Subduction Zone": [
{
"code": "RIZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
{
"code": "GLKZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
{
"code": "MXZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
{
"code": "WMGZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "PUZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
{
"code": "CNGZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "RIGZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "PRGZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "KNZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
{
"code": "WHHZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "ARHZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "CKHZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "KAHZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "PXZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
{
"code": "PRHZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "BFZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
{
"code": "CPWZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "TMWZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "TRWZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "WRRZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
{
"code": "CMWZ",
"preferred_channel": "EHE",
"preferred_location": "10"
},
{
"code": "BSWZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
{
"code": "CTZ",
"preferred_channel": "HHE",
"preferred_location": "10"
},
],
"Rotorua & East Cape": [
],
"White Island": [
],
"Taupo & Greater Area": [
],
"Hawkes Bay": [
],
"Mount Taranaki": [
],
"Palmerston North & Whanganui": [
],
"Mount Ruapehu": [
],
"Wellington (Ashurst & South)": [
],
"Christchurch & Kaikoura incl. Banks Peninsula": [
],
"Southland (Otago, Invicargil Milford Sound etc)": [
],
"Stewart Island, Snares Island & Antartica": [
],
"Southern Alps / Alpine Fault": [
],
"Queenstown & Wanaka": [
],
}