├── anaconda_path.txt ├── utils ├── model.png ├── public_eqcct │ ├── sc_cfg_files │ │ ├── scamp.cfg │ │ ├── scmag.cfg │ │ ├── scanloc.cfg │ │ └── scevent.cfg │ ├── public_eqcct │ │ ├── test_dispatch_sc5.py │ │ ├── midland_east │ │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ │ └── ai_scheduler_midland_east.py │ │ ├── midland_south │ │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ │ └── ai_scheduler_midland_south.py │ │ ├── midland_west │ │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ │ └── ai_scheduler_midland_west.py │ │ ├── playback_eqcct │ │ │ ├── eqcct_instances │ │ │ │ ├── midland_east │ │ │ │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ │ │ │ └── ai_scheduler_midland_east.py │ │ │ │ ├── midland_south │ │ │ │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ │ │ │ └── ai_scheduler_midland_south.py │ │ │ │ ├── midland_west │ │ │ │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ │ │ │ └── ai_scheduler_midland_west.py │ │ │ │ ├── snag │ │ │ │ │ ├── snag.bna │ │ │ │ │ ├── ai_scheduler_snag.py │ │ │ │ │ ├── ai_picker_scdl.inp │ │ │ │ │ └── ai_picker.inp │ │ │ │ ├── snyder │ │ │ │ │ ├── snyder_eqcct.bna │ │ │ │ │ ├── playback_test │ │ │ │ │ │ ├── snyder_eqcct.bna │ │ │ │ │ │ └── one_event_test │ │ │ │ │ │ │ └── snyder_eqcct.bna │ │ │ │ │ └── ai_scheduler_snyder.py │ │ │ │ ├── pecos │ │ │ │ │ └── ai_scheduler_pecos.py │ │ │ │ ├── alpine │ │ │ │ │ └── ai_scheduler_alpine.py │ │ │ │ ├── s-reeves │ │ │ │ │ └── ai_scheduler_s-reeves.py │ │ │ │ ├── coalson │ │ │ │ │ └── ai_scheduler_coalson.py │ │ │ │ ├── delaware-box │ │ │ │ │ └── ai_scheduler_delaware-box.py │ │ │ │ ├── mentone │ │ │ │ │ └── ai_scheduler_mentone.py │ │ │ │ ├── pecos-river │ │ │ │ │ └── ai_scheduler_pecos-river.py │ │ │ │ ├── n-culberson_mentone │ │ │ │ │ └── ai_scheduler_n-culberson_mentone.py │ │ │ │ ├── river-pecos-coline │ │ │ │ │ └── ai_scheduler_river-pecos-coline.py │ │ │ │ ├── c-culberson │ │ │ │ │ └── ai_scheduler_c-culberson.py │ │ │ │ └── wc-culberson │ │ │ │ │ └── ai_scheduler_wc-culberson.py │ │ │ ├── old_eqcct_instances_20241212 │ │ │ │ ├── midland_east │ │ │ │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ │ │ │ └── ai_scheduler_midland_east.py │ │ │ │ ├── midland_south │ │ │ │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ │ │ │ └── ai_scheduler_midland_south.py │ │ │ │ ├── midland_west │ │ │ │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ │ │ │ └── ai_scheduler_midland_west.py │ │ │ │ ├── snag │ │ │ │ │ ├── snag.bna │ │ │ │ │ ├── ai_scheduler_snag.py │ │ │ │ │ ├── ai_picker_scdl.inp │ │ │ │ │ └── ai_picker.inp │ │ │ │ ├── snyder │ │ │ │ │ ├── snyder_eqcct.bna │ │ │ │ │ ├── playback_test │ │ │ │ │ │ ├── snyder_eqcct.bna │ │ │ │ │ │ └── one_event_test │ │ │ │ │ │ │ └── snyder_eqcct.bna │ │ │ │ │ └── ai_scheduler_snyder.py │ │ │ │ ├── pecos │ │ │ │ │ └── ai_scheduler_pecos.py │ │ │ │ ├── alpine │ │ │ │ │ └── ai_scheduler_alpine.py │ │ │ │ ├── s-reeves │ │ │ │ │ └── ai_scheduler_s-reeves.py │ │ │ │ ├── coalson │ │ │ │ │ └── ai_scheduler_coalson.py │ │ │ │ ├── delaware-box │ │ │ │ │ └── ai_scheduler_delaware-box.py │ │ │ │ ├── mentone │ │ │ │ │ └── ai_scheduler_mentone.py │ │ │ │ ├── pecos-river │ │ │ │ │ └── ai_scheduler_pecos-river.py │ │ │ │ ├── river-pecos-coline │ │ │ │ │ └── ai_scheduler_river-pecos-coline.py │ │ │ │ ├── n-culberson_mentone │ │ │ │ │ └── ai_scheduler_n-culberson_mentone.py │ │ │ │ ├── c-culberson │ │ │ │ │ └── ai_scheduler_c-culberson.py │ │ │ │ └── wc-culberson │ │ │ │ │ └── ai_scheduler_wc-culberson.py │ │ │ ├── test_camilo │ │ │ │ └── c-culberson_camilo │ │ │ │ │ └── ai_scheduler_c-culberson.py │ │ │ └── test_instances │ │ │ │ └── c-culberson │ │ │ │ └── ai_scheduler_c-culberson.py │ │ ├── snag │ │ │ ├── snag.bna │ │ │ ├── ai_scheduler_snag.py │ │ │ ├── ai_picker_scdl.inp │ │ │ ├── ai_picker.inp │ │ │ └── test │ │ │ │ └── output │ │ │ │ ├── 08082024-200000_08082024-204000 │ │ │ │ └── ai_picker.inp │ │ │ │ ├── 08082024-203800_08082024-211800 │ │ │ │ └── ai_picker.inp │ │ │ │ ├── 08082024-211600_08082024-215600 │ │ │ │ └── ai_picker.inp │ │ │ │ ├── 08082024-215400_08082024-223400 │ │ │ │ └── ai_picker.inp │ │ │ │ ├── 08082024-223200_08082024-231200 │ │ │ │ └── ai_picker.inp │ │ │ │ ├── 08082024-231000_08082024-235000 │ │ │ │ └── ai_picker.inp │ │ │ │ ├── 08082024-234800_09082024-002800 │ │ │ │ └── ai_picker.inp │ │ │ │ ├── 09082024-002600_09082024-010600 │ │ │ │ └── ai_picker.inp │ │ │ │ ├── 09082024-010400_09082024-014400 │ │ │ │ └── ai_picker.inp │ │ │ │ └── 09082024-014200_09082024-022200 │ │ │ │ └── ai_picker.inp │ │ ├── snyder │ │ │ ├── snyder_eqcct.bna │ │ │ ├── playback_test │ │ │ │ ├── snyder_eqcct.bna │ │ │ │ └── one_event_test │ │ │ │ │ └── snyder_eqcct.bna │ │ │ └── ai_scheduler_snyder.py │ │ ├── ai_scheduler_coalson.py │ │ ├── delaware │ │ │ ├── pecos │ │ │ │ └── ai_scheduler_pecos.py │ │ │ ├── alpine │ │ │ │ └── ai_scheduler_alpine.py │ │ │ ├── s-reeves │ │ │ │ └── ai_scheduler_s-reeves.py │ │ │ ├── coalson │ │ │ │ └── ai_scheduler_coalson.py │ │ │ ├── delaware-box │ │ │ │ └── ai_scheduler_delaware-box.py │ │ │ ├── mentone │ │ │ │ └── ai_scheduler_mentone.py │ │ │ ├── pecos-river │ │ │ │ └── ai_scheduler_pecos-river.py │ │ │ ├── river-pecos-coline │ │ │ │ └── ai_scheduler_river-pecos-coline.py │ │ │ ├── n-culberson_mentone │ │ │ │ ├── ai_scheduler_n-culberson_mentone.py │ │ │ │ ├── ai_picker.inp │ │ │ │ └── ai_picker_scdl.inp │ │ │ ├── c-culberson │ │ │ │ └── ai_scheduler_c-culberson.py │ │ │ └── wc-culberson │ │ │ │ └── ai_scheduler_wc-culberson.py │ │ ├── test_c-culberson │ │ │ └── c-culberson │ │ │ │ └── ai_scheduler_c-culberson.py │ │ ├── bk_delaware │ │ │ ├── alpine │ │ │ │ └── ai_scheduler_alpine.py │ │ │ ├── pecos │ │ │ │ └── ai_scheduler_pecos.py │ │ │ ├── s-reeves │ │ │ │ └── ai_scheduler_s-reeves.py │ │ │ ├── c-culberson │ │ │ │ └── ai_scheduler_c-culberson.py │ │ │ ├── coalson │ │ │ │ └── ai_scheduler_coalson.py │ │ │ ├── mentone │ │ │ │ └── ai_scheduler_mentone.py │ │ │ ├── pecos-river │ │ │ │ └── ai_scheduler_pecos-river.py │ │ │ ├── delaware-box │ │ │ │ └── ai_scheduler_delaware-box.py │ │ │ ├── wc-culberson │ │ │ │ └── ai_scheduler_wc-culberson.py │ │ │ ├── n-culberson_mentone │ │ │ │ └── ai_scheduler_n-culberson_mentone.py │ │ │ └── river-pecos-coline │ │ │ │ └── ai_scheduler_river-pecos-coline.py │ │ ├── eagle_ford │ │ │ └── ai_scheduler_eagle_ford.py │ │ ├── test_sc5_env.py │ │ └── test_regions_as_discontinuos.py │ ├── midland_range_hill │ │ ├── texnet_NMidlandM5.4_aoi.bna │ │ └── ai_scheduler_midland.py │ ├── eqcct-midland-east.service │ ├── eqcct-midland-south.service │ ├── eqcct-midland-west.service │ ├── test_sc5 │ │ └── test_culberson_sc5.py │ ├── delaware_culberson │ │ └── ai_scheduler_culberson.py │ └── delaware_coalson │ │ └── ai_scheduler_coalson.py ├── utils │ └── fake_evaluator │ │ └── readme.txt ├── run_dashboard.sh ├── scrttv-eqcct.sh ├── run_and_send_eqcct.sh ├── test_EventTypeChanger.py ├── check-origin-in-sc5.py ├── playback_readme.txt ├── gaia │ ├── eqcct-coalson.service │ ├── eqcct-culberson.service │ └── eqcct-rangehill.service ├── stations_from_eventID.sql ├── playback.inp ├── plot_npz.py ├── send_to_sc5.py ├── sgc_daniel.inp ├── plotmissing.py ├── clean_origins.py ├── print_npz.py ├── joincsv.py ├── query_picks.txt ├── joinpicks.py ├── query.py ├── phaseNet.inp ├── latest_events.sql ├── merge_xml_picks.py ├── ai_picker_coalson.inp ├── ai_picker_event.inp └── event_picker.py ├── model ├── EqT_model.h5 ├── ModelPS │ ├── test_trainer_021.h5 │ └── test_trainer_024.h5 ├── EagleFord │ ├── test_trainer_001.h5 │ └── test_trainer_S_007.h5 ├── EQCCT_TF_TEXAS │ ├── test_trainer_005.h5 │ └── test_trainer_S_010.h5 ├── EQCCT_TF_Delaware │ ├── test_trainer_011.h5 │ └── test_trainer_S_005.h5 ├── EQCCT_TF_Midland │ ├── test_trainer_003.h5 │ └── test_trainer_S_005.h5 ├── Fine_Tuned_EQCCT_MidLand_Freeze │ ├── test_trainer_004.h5 │ └── test_trainer_S_006.h5 └── compare_models.sh ├── requirements.txt ├── LICENSE ├── .gitignore └── ai_picker.py /anaconda_path.txt: -------------------------------------------------------------------------------- 1 | anaconda_path = /home/siervod/anaconda3 -------------------------------------------------------------------------------- /utils/model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/utils/model.png -------------------------------------------------------------------------------- /model/EqT_model.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/EqT_model.h5 -------------------------------------------------------------------------------- /model/ModelPS/test_trainer_021.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/ModelPS/test_trainer_021.h5 -------------------------------------------------------------------------------- /model/ModelPS/test_trainer_024.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/ModelPS/test_trainer_024.h5 -------------------------------------------------------------------------------- /model/EagleFord/test_trainer_001.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/EagleFord/test_trainer_001.h5 -------------------------------------------------------------------------------- /model/EagleFord/test_trainer_S_007.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/EagleFord/test_trainer_S_007.h5 -------------------------------------------------------------------------------- /model/EQCCT_TF_TEXAS/test_trainer_005.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/EQCCT_TF_TEXAS/test_trainer_005.h5 -------------------------------------------------------------------------------- /model/EQCCT_TF_Delaware/test_trainer_011.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/EQCCT_TF_Delaware/test_trainer_011.h5 -------------------------------------------------------------------------------- /model/EQCCT_TF_Midland/test_trainer_003.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/EQCCT_TF_Midland/test_trainer_003.h5 -------------------------------------------------------------------------------- /model/EQCCT_TF_TEXAS/test_trainer_S_010.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/EQCCT_TF_TEXAS/test_trainer_S_010.h5 -------------------------------------------------------------------------------- /model/EQCCT_TF_Delaware/test_trainer_S_005.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 -------------------------------------------------------------------------------- /model/EQCCT_TF_Midland/test_trainer_S_005.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/EQCCT_TF_Midland/test_trainer_S_005.h5 -------------------------------------------------------------------------------- /utils/public_eqcct/sc_cfg_files/scamp.cfg: -------------------------------------------------------------------------------- 1 | # Definition of magnitude types for which amplitudes are to be calculated. 2 | amplitudes = MLv, mb, mB, Mwp, ML 3 | -------------------------------------------------------------------------------- /model/Fine_Tuned_EQCCT_MidLand_Freeze/test_trainer_004.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/Fine_Tuned_EQCCT_MidLand_Freeze/test_trainer_004.h5 -------------------------------------------------------------------------------- /model/Fine_Tuned_EQCCT_MidLand_Freeze/test_trainer_S_006.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dsiervo/sc3_ai_picker/HEAD/model/Fine_Tuned_EQCCT_MidLand_Freeze/test_trainer_S_006.h5 -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/test_dispatch_sc5.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | import os 3 | 4 | 5 | def test_sc5_env(): 6 | os.system("scdispatch -V") -------------------------------------------------------------------------------- /utils/utils/fake_evaluator/readme.txt: -------------------------------------------------------------------------------- 1 | Dino asked about a tool to assess whether an event is real or not, waveform based. 2 | 3 | We will start using EQCCT. Waveform CC is also an option. 4 | -------------------------------------------------------------------------------- /utils/run_dashboard.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | eval /home/siervod/anaconda3/envs/eqt/bin/streamlit run /home/siervod/sc3_ai_picker/utils/events_dashboard.py $1 --server.headless true --server.fileWatcherType none -------------------------------------------------------------------------------- /utils/public_eqcct/sc_cfg_files/scmag.cfg: -------------------------------------------------------------------------------- 1 | # The magnitude types to be calculated. Station magnitudes are computed from 2 | # their amplitudes, network magnitudes from their station magnitudes. 3 | magnitudes = MLv, mb, mB, Mwp, ML(TexNet) 4 | -------------------------------------------------------------------------------- /utils/public_eqcct/midland_range_hill/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/midland_east/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/midland_south/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/midland_west/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /utils/scrttv-eqcct.sh: -------------------------------------------------------------------------------- 1 | echo 'scrttv --streams.codes="*.MG01.*.*" --buffer-size=600 --debug --end-time "2023-10-07 23:59:59"' 2 | echo 'scrttv --streams.codes="$1" --buffer-size=600 --debug --end-time "$2"' 3 | source ~/sc3env 4 | scrttv --streams.codes="$1" --buffer-size=600 --debug --end-time "$2" --offline 5 | -------------------------------------------------------------------------------- /utils/run_and_send_eqcct.sh: -------------------------------------------------------------------------------- 1 | time discontinuous_picker.py -s "2022-11-26 00:00:00" -e "2022-11-28 13:00:00" -n 0.25 2 | cd test/output 3 | timeout -120 prune_and_count_events.py 4 | origins_pruning.py main_events_pruned.xml prefered_origins.xml 5 | scdispatch -i prefered_origins.xml -H sc3primary.beg.utexas.edu 6 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/midland_east/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/midland_south/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/midland_west/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | schedule==0.6.0 2 | cmcrameri==1.2 3 | click==7.1.2 4 | pydeck==0.6.1 5 | pandas==1.0.5 6 | matplotlib==3.2.2 7 | numpy==1.18.5 8 | EQTransformer==0.1.59 9 | obspy==1.2.2 10 | pandas_read_xml==0.0.9 11 | plotly==4.14.3 12 | streamlit==0.78.0 13 | tensorflow==2.0.0 14 | mysql-connector-python 15 | obsplus -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/midland_east/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/midland_south/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/midland_west/texnet_NMidlandM5.4_aoi.bna: -------------------------------------------------------------------------------- 1 | -102.23116149902157,32.245123116023485 2 | -102.03581085204917,32.245123116023485 3 | -102.03581085204917,32.15622547620871 4 | -102.23116149902157,32.15622547620871 5 | -102.23116149902157,32.245123116023485 6 | -------------------------------------------------------------------------------- /model/compare_models.sh: -------------------------------------------------------------------------------- 1 | md5sum /home/siervod/sc3_ai_picker/model/Fine_Tuned_EQCCT_MidLand_Freeze/test_trainer_004.h5 2 | md5sum /home/siervod/sc3_ai_picker/model/EQCCT_TF_Midland/test_trainer_003.h5 3 | 4 | md5sum /home/siervod/sc3_ai_picker/model/Fine_Tuned_EQCCT_MidLand_Freeze/test_trainer_S_006.h5 5 | md5sum /home/siervod/sc3_ai_picker/model/EQCCT_TF_Midland/test_trainer_S_005.h5 6 | 7 | -------------------------------------------------------------------------------- /utils/test_EventTypeChanger.py: -------------------------------------------------------------------------------- 1 | import sys 2 | sys.path.append('/home/siervod/projects/developing/test/eqcct_repot/ai_scheduler.py') 3 | from ai_scheduler import EventTypeChanger 4 | 5 | if __name__ == '__main__': 6 | host = 'sc3primary.beg.utexas.edu' 7 | #EventTypeChanger(host, ev_type='not locatable',orig_ids_file='test_origins.txt').run() 8 | EventTypeChanger(host, orig_ids_file='test_origins.txt').run() -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/snag.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 9 2 | -95.0866433186298,33.04256684569103 3 | -93.27197044541258,33.02638223174104 4 | -93.38732140089198,31.129003869506132 5 | -93.6574122471383,30.621978494092502 6 | -94.68713385603094,30.50561623548869 7 | -95.24138269423928,30.69172886721369 8 | -95.23575588746873,31.987695533530264 9 | -95.27514405002006,32.676071382073786 10 | -95.0866433186298,33.04256684569103 11 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/snag/snag.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 9 2 | -95.0866433186298,33.04256684569103 3 | -93.27197044541258,33.02638223174104 4 | -93.38732140089198,31.129003869506132 5 | -93.6574122471383,30.621978494092502 6 | -94.68713385603094,30.50561623548869 7 | -95.24138269423928,30.69172886721369 8 | -95.23575588746873,31.987695533530264 9 | -95.27514405002006,32.676071382073786 10 | -95.0866433186298,33.04256684569103 11 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/snag/snag.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 9 2 | -95.0866433186298,33.04256684569103 3 | -93.27197044541258,33.02638223174104 4 | -93.38732140089198,31.129003869506132 5 | -93.6574122471383,30.621978494092502 6 | -94.68713385603094,30.50561623548869 7 | -95.24138269423928,30.69172886721369 8 | -95.23575588746873,31.987695533530264 9 | -95.27514405002006,32.676071382073786 10 | -95.0866433186298,33.04256684569103 11 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snyder/snyder_eqcct.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 10 2 | -101.11354432183498,33.8962394190984 3 | -100.64845665472741,33.947899211757615 4 | -100.42873009222744,33.71975304096293 5 | -100.11745068359374,33.17892141578217 6 | -100.31154236871001,32.49893401812224 7 | -100.6887397460937,32.44332153063973 8 | -101.0659371234774,32.57611666085513 9 | -101.13917919921866,32.702552502678984 10 | -101.22706982421869,33.252451966081864 11 | -101.11354432183498,33.8962394190984 12 | -------------------------------------------------------------------------------- /utils/check-origin-in-sc5.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | 3 | import sys 4 | sys.path.append("/home/siervod/sc3_ai_picker/utils/") 5 | from main_ai_scheduler import EventTypeChanger 6 | 7 | 8 | if __name__ == '__main__': 9 | orginid = sys.argv[1] 10 | 11 | evtch = EventTypeChanger('scdb.beg.utexas.edu', user='sysro', passwd='0niReady', database='seiscomp', 12 | scroot='/home/siervod/seiscomp') 13 | 14 | print(evtch.get_event_id(orginid)) 15 | 16 | 17 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/snyder/snyder_eqcct.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 10 2 | -101.11354432183498,33.8962394190984 3 | -100.64845665472741,33.947899211757615 4 | -100.42873009222744,33.71975304096293 5 | -100.11745068359374,33.17892141578217 6 | -100.31154236871001,32.49893401812224 7 | -100.6887397460937,32.44332153063973 8 | -101.0659371234774,32.57611666085513 9 | -101.13917919921866,32.702552502678984 10 | -101.22706982421869,33.252451966081864 11 | -101.11354432183498,33.8962394190984 12 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/snyder/snyder_eqcct.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 10 2 | -101.11354432183498,33.8962394190984 3 | -100.64845665472741,33.947899211757615 4 | -100.42873009222744,33.71975304096293 5 | -100.11745068359374,33.17892141578217 6 | -100.31154236871001,32.49893401812224 7 | -100.6887397460937,32.44332153063973 8 | -101.0659371234774,32.57611666085513 9 | -101.13917919921866,32.702552502678984 10 | -101.22706982421869,33.252451966081864 11 | -101.11354432183498,33.8962394190984 12 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snyder/playback_test/snyder_eqcct.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 11 2 | -101.07722523003807,33.240967910844105 3 | -100.8282019042969,33.29914335796125 4 | -100.59382679253831,33.17815621473818 5 | -100.40889032498025,32.846502668329585 6 | -100.4052282714846,32.55682831791173 7 | -100.62312372341763,32.40390974767142 8 | -100.85383661404254,32.55682831791173 9 | -101.00032093316311,32.61853989677105 10 | -101.07722523003807,32.7911059515275 11 | -101.11750848904241,33.010949859333174 12 | -101.07722523003807,33.240967910844105 13 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snyder/playback_test/one_event_test/snyder_eqcct.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 11 2 | -101.07722523003807,33.240967910844105 3 | -100.8282019042969,33.29914335796125 4 | -100.59382679253831,33.17815621473818 5 | -100.40889032498025,32.846502668329585 6 | -100.4052282714846,32.55682831791173 7 | -100.62312372341763,32.40390974767142 8 | -100.85383661404254,32.55682831791173 9 | -101.00032093316311,32.61853989677105 10 | -101.07722523003807,32.7911059515275 11 | -101.11750848904241,33.010949859333174 12 | -101.07722523003807,33.240967910844105 13 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/snyder/playback_test/snyder_eqcct.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 11 2 | -101.07722523003807,33.240967910844105 3 | -100.8282019042969,33.29914335796125 4 | -100.59382679253831,33.17815621473818 5 | -100.40889032498025,32.846502668329585 6 | -100.4052282714846,32.55682831791173 7 | -100.62312372341763,32.40390974767142 8 | -100.85383661404254,32.55682831791173 9 | -101.00032093316311,32.61853989677105 10 | -101.07722523003807,32.7911059515275 11 | -101.11750848904241,33.010949859333174 12 | -101.07722523003807,33.240967910844105 13 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/snyder/playback_test/snyder_eqcct.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 11 2 | -101.07722523003807,33.240967910844105 3 | -100.8282019042969,33.29914335796125 4 | -100.59382679253831,33.17815621473818 5 | -100.40889032498025,32.846502668329585 6 | -100.4052282714846,32.55682831791173 7 | -100.62312372341763,32.40390974767142 8 | -100.85383661404254,32.55682831791173 9 | -101.00032093316311,32.61853989677105 10 | -101.07722523003807,32.7911059515275 11 | -101.11750848904241,33.010949859333174 12 | -101.07722523003807,33.240967910844105 13 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/snyder/playback_test/one_event_test/snyder_eqcct.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 11 2 | -101.07722523003807,33.240967910844105 3 | -100.8282019042969,33.29914335796125 4 | -100.59382679253831,33.17815621473818 5 | -100.40889032498025,32.846502668329585 6 | -100.4052282714846,32.55682831791173 7 | -100.62312372341763,32.40390974767142 8 | -100.85383661404254,32.55682831791173 9 | -101.00032093316311,32.61853989677105 10 | -101.07722523003807,32.7911059515275 11 | -101.11750848904241,33.010949859333174 12 | -101.07722523003807,33.240967910844105 13 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/snyder/playback_test/one_event_test/snyder_eqcct.bna: -------------------------------------------------------------------------------- 1 | "NONAME", "", 11 2 | -101.07722523003807,33.240967910844105 3 | -100.8282019042969,33.29914335796125 4 | -100.59382679253831,33.17815621473818 5 | -100.40889032498025,32.846502668329585 6 | -100.4052282714846,32.55682831791173 7 | -100.62312372341763,32.40390974767142 8 | -100.85383661404254,32.55682831791173 9 | -101.00032093316311,32.61853989677105 10 | -101.07722523003807,32.7911059515275 11 | -101.11750848904241,33.010949859333174 12 | -101.07722523003807,33.240967910844105 13 | -------------------------------------------------------------------------------- /utils/playback_readme.txt: -------------------------------------------------------------------------------- 1 | 2 | 1. Remove test subfolders and main_events_pruned.xml files 3 | find /home/siervod/projects/realtime/public_eqcct/delaware -type d -name "test" -exec rm -fr {} \; -o -type f -name "main_events_pruned.xml" -exec rm -fr {} \; 4 | 5 | 2. Iniciate seiscomp env: 6 | sc5 7 | 8 | 2. Run: 9 | python parallel_test_regions_as_discontinuos.py delaware '2023-10-01 00:00:00' '2023-10-01 01:59:59' 10 | 11 | Wich will run in each subfolder of delaware mv ai_apicker_scd.inp temp_ai_picker.inp and then run discontinous picker every 40 min 12 | 13 | 3. Enter to delaware folder and run (default author and db are EQCCT and scdb respectevly): 14 | dispatch_walk.py 15 | -------------------------------------------------------------------------------- /utils/gaia/eqcct-coalson.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=EQCCT Coalson 3 | After=network.target 4 | 5 | [Service] 6 | ExecStart=/home/siervod/anaconda3/envs/eqt/bin/python ai_scheduler_coalson.py 7 | WorkingDirectory=/home/siervod/projects/realtime/delaware_coalson/ 8 | Environment=PATH=/home/siervod/sc3_ai_picker/utils:/home/siervod/sc3_ai_picker:/home/siervod/anaconda3/bin:/home/siervod/anaconda3/condabin:/home/siervod/seiscomp3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/siervod/.local/bin:/home/siervod/bin 9 | Environment=CONDA_DEFAULT_ENV=eqt 10 | Environment=SEISCOMP_ROOT=/home/siervod/seiscomp3 11 | Restart=always 12 | User=siervod 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /utils/gaia/eqcct-culberson.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=EQCCT Culberson 3 | After=network.target 4 | 5 | [Service] 6 | ExecStart=/home/siervod/anaconda3/envs/eqt/bin/python ai_scheduler_culberson.py 7 | WorkingDirectory=/home/siervod/projects/realtime/delaware_culberson/ 8 | Environment=PATH=/home/siervod/sc3_ai_picker/utils:/home/siervod/sc3_ai_picker:/home/siervod/anaconda3/bin:/home/siervod/anaconda3/condabin:/home/siervod/seiscomp3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/siervod/.local/bin:/home/siervod/bin 9 | Environment=CONDA_DEFAULT_ENV=eqt 10 | Environment=SEISCOMP_ROOT=/home/siervod/seiscomp3 11 | Restart=always 12 | User=siervod 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /utils/gaia/eqcct-rangehill.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=EQCCT Range Hill 3 | After=network.target 4 | 5 | [Service] 6 | ExecStart=/home/siervod/anaconda3/envs/eqt/bin/python ai_scheduler_midland.py 7 | WorkingDirectory=/home/siervod/projects/realtime/midland_range_hill 8 | Environment=PATH=/home/siervod/sc3_ai_picker/utils:/home/siervod/sc3_ai_picker:/home/siervod/anaconda3/bin:/home/siervod/anaconda3/condabin:/home/siervod/seiscomp3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/siervod/.local/bin:/home/siervod/bin 9 | Environment=CONDA_DEFAULT_ENV=eqt 10 | Environment=SEISCOMP_ROOT=/home/siervod/seiscomp3 11 | Restart=always 12 | User=siervod 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /utils/public_eqcct/eqcct-midland-east.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=EQCCT Midland East 3 | After=network.target 4 | 5 | [Service] 6 | ExecStart=/home/siervod/anaconda3/envs/eqt/bin/python ai_scheduler_midland_east.py 7 | WorkingDirectory=/home/siervod/projects/realtime/public_eqcct/midland_east 8 | Environment=PATH=/home/siervod/sc3_ai_picker/utils:/home/siervod/sc3_ai_picker:/home/siervod/anaconda3/bin:/home/siervod/anaconda3/condabin:/home/siervod/seiscomp3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/siervod/.local/bin:/home/siervod/bin 9 | Environment=CONDA_DEFAULT_ENV=eqt 10 | Environment=SEISCOMP_ROOT=/home/siervod/seiscomp 11 | Restart=always 12 | User=siervod 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /utils/public_eqcct/eqcct-midland-south.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=EQCCT Midland South 3 | After=network.target 4 | 5 | [Service] 6 | ExecStart=/home/siervod/anaconda3/envs/eqt/bin/python ai_scheduler_midland_south.py 7 | WorkingDirectory=/home/siervod/projects/realtime/public_eqcct/midland_south 8 | Environment=PATH=/home/siervod/sc3_ai_picker/utils:/home/siervod/sc3_ai_picker:/home/siervod/anaconda3/bin:/home/siervod/anaconda3/condabin:/home/siervod/seiscomp3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/siervod/.local/bin:/home/siervod/bin 9 | Environment=CONDA_DEFAULT_ENV=eqt 10 | Environment=SEISCOMP_ROOT=/home/siervod/seiscomp 11 | Restart=always 12 | User=siervod 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /utils/public_eqcct/eqcct-midland-west.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=EQCCT Midland West 3 | After=network.target 4 | 5 | [Service] 6 | ExecStart=/home/siervod/anaconda3/envs/eqt/bin/python ai_scheduler_midland_west.py 7 | WorkingDirectory=/home/siervod/projects/realtime/public_eqcct/midland_west 8 | Environment=PATH=/home/siervod/sc3_ai_picker/utils:/home/siervod/sc3_ai_picker:/home/siervod/anaconda3/bin:/home/siervod/anaconda3/condabin:/home/siervod/seiscomp3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/siervod/.local/bin:/home/siervod/bin 9 | Environment=CONDA_DEFAULT_ENV=eqt 10 | Environment=SEISCOMP_ROOT=/home/siervod/seiscomp 11 | Restart=always 12 | User=siervod 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /utils/stations_from_eventID.sql: -------------------------------------------------------------------------------- 1 | SELECT 2 | pick.time_value AS pick_time, 3 | a.phase_code AS phase_type, 4 | pick.waveformID_networkCode AS network, 5 | pick.waveformID_stationCode AS station, 6 | pick.waveformID_locationCode AS location, 7 | pick.waveformID_channelCode AS channel 8 | FROM 9 | Event e 10 | JOIN 11 | PublicObject poe ON e._oid = poe._oid 12 | JOIN 13 | PublicObject po_origin ON e.preferredOriginID = po_origin.publicID 14 | JOIN 15 | Origin o ON po_origin._oid = o._oid 16 | JOIN 17 | Arrival a ON a._parent_oid = o._oid 18 | JOIN 19 | PublicObject po_pick ON a.pickID = po_pick.publicID 20 | JOIN 21 | Pick pick ON po_pick._oid = pick._oid 22 | WHERE 23 | poe.publicID = '{eventID}' 24 | group by pick.waveformID_stationCode 25 | order by pick.time_value asc 26 | 27 | -------------------------------------------------------------------------------- /utils/public_eqcct/test_sc5/test_culberson_sc5.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2020 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | 12 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 13 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 14 | from test_ai_scheduler import test_runner 15 | 16 | if __name__ == "__main__": 17 | 18 | every_minutes = 30 # period of excecution in minutes 19 | #every_minutes = 1 # period of excecution in minutes 20 | 21 | minutes = 40 # period of excecution in minutes 22 | #delay = 30 # delay in minutes 23 | delay = 0 # delay in minutes 24 | 25 | test_runner('2022-01-01 01:00:00', '2022-01-01 01:40:00', db='sc3primary.beg.utexas.edu') 26 | -------------------------------------------------------------------------------- /utils/playback.inp: -------------------------------------------------------------------------------- 1 | # comentary 2 | 3 | wf_extraction = yes 4 | 5 | # database in wich the pickers that will be tested were configured 6 | db = mysql://sysop:sysop@10.100.100.232/seiscomp3 7 | # upload the events to db? Can be yes or no 8 | upload = no 9 | 10 | # scanloc profile 11 | sc_scanloc = scanloc 12 | 13 | # If there are already phaseNet xml picks 14 | phaseNet = yes 15 | 16 | # scautopick profiles 17 | picks = pickZbayes, pickNbayes 18 | 19 | # stations to download 20 | #station = BAR2, BRJC, PAM, RUS, PTB, OCA, SPBC, YPLC 21 | station = URMC, CLBC, PRA, TAPM, PIRM, CHI, CVER, GARC, BELO 22 | loc_cod = 00, 20 23 | ch = HH*, EH* 24 | net = CM 25 | 26 | # time range in which pickers will be tested 27 | init_time = 2020-08-10 6:33:00 28 | end_time = 2020-08-10 6:38:00 29 | 30 | # fdsn direction to download the waveforms 31 | ip_fdsn = http://10.100.100.232:8091 32 | -------------------------------------------------------------------------------- /utils/plot_npz.py: -------------------------------------------------------------------------------- 1 | #!/home/sgc/anaconda3/envs/tf_2.0/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Mar 5 11:25:33 2020 5 | 6 | @author: Daniel Siervo, emetdan@gmail.com 7 | """ 8 | 9 | import numpy as np 10 | import matplotlib.pyplot as plt 11 | import glob 12 | 13 | 14 | def main(): 15 | for npz in glob.glob('*.npz'): 16 | 17 | print('\n\t', npz) 18 | data = np.load(npz) 19 | 20 | y = data['data'][:,1] 21 | p = data['itp'] 22 | s = data['its'] 23 | 24 | y_min = min(y) 25 | y_max = max(y) 26 | 27 | plt.figure() 28 | plt.plot(y) 29 | plt.vlines(p, y_min, y_max, colors='black', label='P') 30 | plt.vlines(s, y_min, y_max, colors='r', label='S') 31 | plt.legend() 32 | plt.show() 33 | 34 | if __name__ == "__main__": 35 | main() 36 | -------------------------------------------------------------------------------- /utils/public_eqcct/sc_cfg_files/scanloc.cfg: -------------------------------------------------------------------------------- 1 | author = EQCCT 2 | # Maximum depth of an origin to be sent. 3 | ignoreDepth = 30 4 | 5 | # Minimum score of an origin to be sent. 6 | minScore = 8.5 7 | 8 | # Maximum allowed distance over all core points and maximum allowed distance 9 | # for neighborhood search. Both account for travel-time difference, 10 | # inter-station distance and the configured averageVelocity. 11 | clusterSearch.maxSearchDist = 35 12 | 13 | # Maximum allowed origins derived from cluster search. Set this option to zero 14 | # to disable the cluster search completly. 15 | clusterSearch.maxOrigins = 400 16 | 17 | # New clusters are formed when new picks arrive and previous clusters have 18 | # already a pick with the same stream ID as the new pick. Use this option to 19 | # ignore new picks with the given time difference to cluster picks with the 20 | # same stream ID. 21 | #clusterSearch.ignorePickTimeDifference = 3.0 22 | buffer.ignorePickTimeDifference = 3.0 23 | -------------------------------------------------------------------------------- /utils/send_to_sc5.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | import os 3 | import sys 4 | 5 | 6 | def send_to_sc5(xml_path, usr='aitexnet', test=True): 7 | """Sends picks or origins xml files to sc5. 8 | """ 9 | sc5_dir = '/home/seiscomp/daniel/eqcct_xml/' 10 | sc5_path = os.path.join(sc5_dir, os.path.basename(xml_path)) 11 | scdispatch_cmd = f'/opt/seiscomp/bin/seiscomp exec scdispatch -i {sc5_path} -H localhost/production -u {usr}' 12 | test_cmd = f'echo {scdispatch_cmd} > {os.path.join(sc5_dir, "command_test.txt")}' 13 | send_cmd = test_cmd if test else scdispatch_cmd 14 | 15 | cmd = f'scp {xml_path} seiscomp@scdb.beg.utexas.edu:{sc5_dir};' 16 | # "echo" and " > os.path.join(sc5_dir, command_test.txt)" are for testing 17 | cmd += f'ssh -l seiscomp scdb.beg.utexas.edu "{send_cmd}"' 18 | print('\n'+cmd+'\n') 19 | os.system(cmd) 20 | 21 | 22 | if __name__ == "__main__": 23 | xml_path = sys.argv[1] 24 | usr = sys.argv[2] 25 | send_to_sc5(xml_path, usr) 26 | 27 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/ai_scheduler_coalson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/pecos/ai_scheduler_pecos.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(1) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/midland_east/ai_scheduler_midland_east.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 13 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/midland_south/ai_scheduler_midland_south.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 13 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/midland_west/ai_scheduler_midland_west.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 13 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/ai_scheduler_snag.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Daniel Siervo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/alpine/ai_scheduler_alpine.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/s-reeves/ai_scheduler_s-reeves.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snyder/ai_scheduler_snyder.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/coalson/ai_scheduler_coalson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/delaware-box/ai_scheduler_delaware-box.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/mentone/ai_scheduler_mentone.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/pecos-river/ai_scheduler_pecos-river.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/midland_range_hill/ai_scheduler_midland.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 30 # period of excecution in minutes 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 40 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/pecos/ai_scheduler_pecos.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(1) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/test_c-culberson/c-culberson/ai_scheduler_c-culberson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(1) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/river-pecos-coline/ai_scheduler_river-pecos-coline.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/alpine/ai_scheduler_alpine.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/delaware_culberson/ai_scheduler_culberson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/n-culberson_mentone/ai_scheduler_n-culberson_mentone.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/midland_east/ai_scheduler_midland_east.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 13 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/midland_south/ai_scheduler_midland_south.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 13 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/midland_west/ai_scheduler_midland_west.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 13 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/s-reeves/ai_scheduler_s-reeves.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/snag/ai_scheduler_snag.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/delaware_coalson/ai_scheduler_coalson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 30 # period of excecution in minutes 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 40 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/coalson/ai_scheduler_coalson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/delaware-box/ai_scheduler_delaware-box.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/mentone/ai_scheduler_mentone.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/pecos-river/ai_scheduler_pecos-river.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/snyder/ai_scheduler_snyder.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/pecos/ai_scheduler_pecos.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(1) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/test_camilo/c-culberson_camilo/ai_scheduler_c-culberson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(1) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/test_instances/c-culberson/ai_scheduler_c-culberson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(1) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/alpine/ai_scheduler_alpine.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/pecos/ai_scheduler_pecos.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(1) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/alpine/ai_scheduler_alpine.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/s-reeves/ai_scheduler_s-reeves.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/s-reeves/ai_scheduler_s-reeves.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/midland_east/ai_scheduler_midland_east.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 13 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/midland_south/ai_scheduler_midland_south.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 13 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/midland_west/ai_scheduler_midland_west.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | minutes = 13 # 15 minutes of data 23 | #delay = 60 # delay in minutes 24 | delay = 0 # delay in minutes 25 | schedule.every(every_minutes).minutes.do(runner, 26 | every_m=minutes, 27 | delay=delay, 28 | db='sc3primary.beg.utexas.edu') 29 | 30 | while True: 31 | schedule.run_pending() 32 | time.sleep(1) # wait one second 33 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/snag/ai_scheduler_snag.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/snyder/ai_scheduler_snyder.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/sc_cfg_files/scevent.cfg: -------------------------------------------------------------------------------- 1 | # Prefix for all Event IDs 2 | eventIDPrefix = "texnet" 3 | 4 | # Minimum number of Picks for an Origin that is automatic and cannot be 5 | # associated with an Event to be allowed to form an new Event. 6 | eventAssociation.minimumDefiningPhases = 4 7 | 8 | # Associates an origin with an existing event if the origin time differs not 9 | # more than 60 seconds unless the minimumMatchingArrivals criteria matches. 10 | eventAssociation.maximumTimeSpan = 7 11 | 12 | # Allowed location difference between an incoming origin compared with 13 | # preferred origins to get associated. 14 | eventAssociation.maximumDistance = 1 15 | 16 | # If true, one magnitude will be preferred even if magnitude criteria are not 17 | # fullfilled. 18 | eventAssociation.enableFallbackMagnitude = true 19 | 20 | # Magnitude type priority list for becoming a preferred magnitude for an event. 21 | eventAssociation.magTypes = ML(TexNet), MLv 22 | 23 | # Region in which scevent is allowed to create events. 24 | eventAssociation.region.rect = 25, -107, 37, -93 25 | 26 | # Maximum depth for which scevent is allowed to create events. 27 | eventAssociation.region.maxDepth = 30 28 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/c-culberson/ai_scheduler_c-culberson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(1) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/coalson/ai_scheduler_coalson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 30 # period of excecution in minutes 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 40 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/mentone/ai_scheduler_mentone.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 30 # period of excecution in minutes 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 40 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/pecos-river/ai_scheduler_pecos-river.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/n-culberson_mentone/ai_scheduler_n-culberson_mentone.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/river-pecos-coline/ai_scheduler_river-pecos-coline.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/coalson/ai_scheduler_coalson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/delaware-box/ai_scheduler_delaware-box.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/mentone/ai_scheduler_mentone.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 13 # 15 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | schedule.every(every_minutes).minutes.do(runner, 28 | every_m=minutes, 29 | delay=delay, 30 | db='sc3primary.beg.utexas.edu') 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one second 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/pecos-river/ai_scheduler_pecos-river.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/delaware-box/ai_scheduler_delaware-box.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/wc-culberson/ai_scheduler_wc-culberson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/river-pecos-coline/ai_scheduler_river-pecos-coline.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/n-culberson_mentone/ai_scheduler_n-culberson_mentone.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/bk_delaware/river-pecos-coline/ai_scheduler_river-pecos-coline.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 30 # period of excecution in minutes 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 40 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/n-culberson_mentone/ai_scheduler_n-culberson_mentone.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu') 30 | 31 | while True: 32 | schedule.run_pending() 33 | time.sleep(10) # wait one minute 34 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/c-culberson/ai_scheduler_c-culberson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu', 30 | save_picks=True) 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one minute 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/c-culberson/ai_scheduler_c-culberson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu', 30 | save_picks=True) 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one minute 35 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/eagle_ford/ai_scheduler_eagle_ford.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | 18 | if __name__ == "__main__": 19 | 20 | every_minutes = 10 21 | #every_minutes = 1 # period of excecution in minutes 22 | 23 | minutes = 50 # 40 minutes of data 24 | #delay = 30 # delay in minutes 25 | delay = 0 # delay in minutes 26 | 27 | #runner_at(every_minutes, delay, db='sc3primary.beg.utexas.edu', interval_min=every_minutes) 28 | schedule.every(every_minutes).minutes.do(runner, 29 | every_m=minutes, 30 | delay=delay, 31 | db='sc3primary.beg.utexas.edu') 32 | 33 | while True: 34 | schedule.run_pending() 35 | time.sleep(1) # wait one second 36 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/c-culberson/ai_scheduler_c-culberson.py: -------------------------------------------------------------------------------- 1 | #!/home/siervod/anaconda3/envs/eqt/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Sep 2023 5 | 6 | @author: Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | 8 | Excecutes ai_picker.py in a periodic time 9 | """ 10 | import sys 11 | import schedule 12 | import time 13 | # append /home/siervod/sc3_ai_picker/utils/ to sys.path 14 | sys.path.append('/home/siervod/sc3_ai_picker/utils/') 15 | from main_ai_scheduler import runner 16 | 17 | if __name__ == "__main__": 18 | 19 | every_minutes = 10 20 | #every_minutes = 1 # period of excecution in minutes 21 | 22 | minutes = 13 # 40 minutes of data 23 | #delay = 30 # delay in minutes 24 | delay = 0 # delay in minutes 25 | 26 | schedule.every(every_minutes).minutes.do(runner, 27 | every_m=minutes, 28 | delay=delay, 29 | db='sc3primary.beg.utexas.edu', 30 | save_picks=True) 31 | 32 | while True: 33 | schedule.run_pending() 34 | time.sleep(1) # wait one minute 35 | -------------------------------------------------------------------------------- /utils/sgc_daniel.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict ------------############################ 2 | 3 | ip = http://10.100.100.232 4 | port = 8091 5 | starttime = 2019-12-25 5:00:00 6 | endtime = 2019-12-25 6:00:00 7 | dt = 7200 8 | 9 | ##############################------------ SECTION 2): Stations to download ------------############################ 10 | 11 | download_data = CM.URMC.00.HH*, CM.CLBC.00.HH*, CM.TAPM.00.HH*, CM.CHI.00.HH*, CM.PRA.00.HH*, CM.ORTC.00.HH*, CM.PIRM.00.HH*, CM.CVER.00.HH*, CM.GARC.00.HH*, CM.BELO.00.HH*, CM.MACC.00.HH* 12 | #download_data = no 13 | 14 | ##############################------------ SECTION 4): Stations to filter ------------############################ 15 | 16 | filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.ORTC, CM.GARC 17 | 18 | ##############################------------ SECTION 2): PhaseNet Dict ------------############################ 19 | 20 | PhaseNet_dir = /home/sgc/mesetas/PhaseNet 21 | general_data_dir = /home/sgc/mesetas/sgc_phasenet/prove/wav 22 | general_output_dir = /home/sgc/mesetas/sgc_phasenet/prove/mesetas_20191225_05_06 23 | model_dir = /home/sgc/mesetas/PhaseNet/model/190703-214543 24 | mode = pred 25 | batch_size = 10 26 | plot_figure = True 27 | save_result = False 28 | -------------------------------------------------------------------------------- /utils/plotmissing.py: -------------------------------------------------------------------------------- 1 | #!/home/sgc/anaconda3/envs/phaseNet/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Aug 25 11:25:33 2020 5 | 6 | @author: Daniel Siervo, emetdan@gmail.com 7 | """ 8 | from obspy.clients.fdsn import Client 9 | from obspy import UTCDateTime 10 | 11 | def plot_missing(station, time): 12 | # Se define la dirección y el puerto 13 | url_fdsn = "http://10.100.100.232:8091" 14 | # se crea el cliente 15 | client = Client(url_fdsn) 16 | 17 | t = UTCDateTime(time) 18 | 19 | st = client.get_waveforms(network='CM', 20 | station=station, 21 | location='20,00', 22 | channel='EH*,HH*', 23 | starttime=t - 150, 24 | endtime=t + 150) 25 | 26 | st.detrend('linear') 27 | st.taper(max_percentage=0.05, type="hann") 28 | 29 | st2 = st.copy() 30 | st3 = st.copy() 31 | st.filter('bandpass', freqmin=1, freqmax=10) 32 | st2.filter('bandpass', freqmin=5, freqmax=10) 33 | 34 | st.plot(method='full') 35 | st2.plot(method='full') 36 | st3.plot(method='full') 37 | 38 | if __name__ == "__main__": 39 | import sys 40 | 41 | plot_missing(sys.argv[1], sys.argv[2]) 42 | 43 | -------------------------------------------------------------------------------- /utils/clean_origins.py: -------------------------------------------------------------------------------- 1 | import obspy as obs 2 | import sys 3 | import os 4 | 5 | 6 | def change_xml_version(ev_file='events_final.xml'): 7 | lines = open(ev_file, encoding='utf-8').readlines() 8 | new_line = '\n' 9 | with open(ev_file, 'w', encoding='utf-8') as f: 10 | for line in lines: 11 | if line.startswith('= 2, 'Insuficent arguments. Needs to provide at least the folders suffix.\n\n\ 45 | Example: joinpicks.py 20200105\n' 46 | if len(sys.argv) == 2: 47 | joincsv(sys.argv[1]) 48 | elif len(sys.argv) == 3: 49 | joincsv(sys.argv[1], sys.argv[2]) -------------------------------------------------------------------------------- /utils/query_picks.txt: -------------------------------------------------------------------------------- 1 | Select POEv.publicID as id, Origin.time_value as time_event, pick_p.waveformID_networkCode as network, 2 | pick_p.waveformID_stationCode as station, 3 | pick_p.waveformID_locationCode as location, pick_p.waveformID_channelCode as channel, 4 | A_p.phase_code as pick_p, pick_p.time_value as time_pick_p, pick_p.time_value_ms as time_ms_pick_p, 5 | A_s.phase_code as pick_s, pick_s.time_value as time_pick_s, pick_s.time_value_ms as time_ms_pick_s 6 | from Event AS EvMF left join PublicObject AS POEv ON EvMF._oid = POEv._oid 7 | left join PublicObject as POOri ON EvMF.preferredOriginID=POOri.publicID 8 | left join Origin ON POOri._oid=Origin._oid 9 | left join PublicObject as POMag on EvMF.preferredMagnitudeID=POMag.publicID 10 | left join Magnitude ON Magnitude._oid = POMag._oid 11 | left join Arrival A_p on A_p._parent_oid=Origin._oid and A_p.phase_code = 'P' 12 | inner join Arrival A_s on A_s._parent_oid=A_p._parent_oid and A_s.phase_code = 'S' 13 | left join PublicObject as POOri1 on POOri1.publicID = A_p.pickID 14 | left join PublicObject as POOri2 on POOri2.publicID = A_s.pickID 15 | left join Pick pick_p on pick_p._oid = POOri1._oid 16 | left join Pick pick_s on pick_s._oid = POOri2._oid 17 | where 18 | pick_p.phaseHint_used = 1 19 | AND pick_p.evaluationMode = 'manual' 20 | AND pick_s.evaluationMode = 'manual' 21 | AND pick_p.waveformID_stationCode = pick_s.waveformID_stationCode 22 | AND Origin.time_value between '%s' and '%s' 23 | AND pick_p.waveformID_stationCode in %s -------------------------------------------------------------------------------- /utils/joinpicks.py: -------------------------------------------------------------------------------- 1 | #!/home/sgc/anaconda3/envs/phaseNet/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Aug 25 11:25:33 2020 5 | 6 | @author: Daniel Siervo, emetdan@gmail.com 7 | """ 8 | 9 | import os 10 | import glob 11 | from merge_xml_picks import merge_xml_picks 12 | 13 | def joinpicks(prefix, out_filename='all_picks_phasenet.xml'): 14 | """Join in one xml the picks.xml generated for sgc_phasenet. The script 15 | needs to be run in the general_data_dir. 16 | 17 | Parameters 18 | ---------- 19 | prefix : str 20 | prefix of the sgc_phasenet output folders. Like '20200712_' 21 | out_filename : str 22 | File name or path of the ouput xml 23 | """ 24 | dirs = glob.glob(prefix+'*') 25 | 26 | # Creating folder that will contains the xml of the picks 27 | picks_dir = 'xml_picks' 28 | if not os.path.isdir(picks_dir): 29 | os.mkdir(picks_dir) 30 | 31 | # Copying all the picks to picks_dir 32 | for idx, d in enumerate(dirs): 33 | source_path = os.path.join(d, 'picks.xml') 34 | target_path = os.path.join(picks_dir, f'picks_{idx}.xml') 35 | 36 | cmd = f'cp {source_path} {target_path}' 37 | print(cmd) 38 | os.system(cmd) 39 | 40 | # Applying merge_xml_picks to picks_dir 41 | merge_xml_picks(picks_dir+'/', out_filename) 42 | 43 | if __name__ == "__main__": 44 | import sys 45 | 46 | assert len(sys.argv) >= 2, 'Insuficent arguments. Needs to provide at least the folders suffix.\n\n\ 47 | Example: joinpicks.py 20200105\n' 48 | if len(sys.argv) == 2: 49 | joinpicks(sys.argv[1]) 50 | elif len(sys.argv) == 3: 51 | joinpicks(sys.argv[1], sys.argv[2]) -------------------------------------------------------------------------------- /utils/query.py: -------------------------------------------------------------------------------- 1 | class phpmyAdmin(object): 2 | def __init__(self,codex_in_txt): 3 | self.txt_file = open(codex_in_txt,"r", encoding="latin-1").readlines() 4 | self.text= self.txt_file[0] 5 | for line in self.txt_file [1:]: 6 | self.text= f'{self.text}\ 7 | {line}' 8 | 9 | def ID_query(self,ID): 10 | self.text= str(self.text)%(f'{ID}') 11 | return self.text 12 | 13 | def date_query(self,initial_date,final_date): 14 | fecha1,h1 =initial_date.split() 15 | fecha2,h2 =final_date.split() 16 | year1,mes1,dia1,hora1,min1,sec1 = fecha1[0:4],fecha1[4:6],fecha1[6:8],h1[0:2],h1[2:4],h1[4:6] 17 | year2,mes2,dia2,hora2,min2,sec2 = fecha2[0:4],fecha2[4:6],fecha2[6:8],h2[0:2],h2[2:4],h2[4:6] 18 | self.text=str(self.text)%(f'"{year1}/{mes1}/{dia1} {hora1}:{min1}:{sec1}"', f'"{year2}/{mes2}/{dia2} {hora2}:{min2}:{sec2}"') 19 | return self.text 20 | 21 | def picks_query(self,initial_date,final_date,stations): 22 | self.text=str(self.text)%(initial_date, final_date, stations) 23 | return self.text 24 | 25 | def radial_query(self,lat, lon, ratio, initial_date,final_date, min_mag,max_mag,min_prof,max_prof): 26 | fecha1,h1 =initial_date.split() 27 | fecha2,h2 =final_date.split() 28 | year1,mes1,dia1,hora1,min1,sec1 = fecha1[0:4],fecha1[4:6],fecha1[6:8],h1[0:2],h1[2:4],h1[4:6] 29 | year2,mes2,dia2,hora2,min2,sec2 = fecha2[0:4],fecha2[4:6],fecha2[6:8],h2[0:2],h2[2:4],h2[4:6] 30 | self.text=str(self.text)%(f'{lat}', f'{lon}', f'{lat}', f'{min_mag}',f'{max_mag}',f'{min_prof}',f'{max_prof}', 31 | f'"{year1}/{mes1}/{dia1} {hora1}:{min1}:{sec1}"', 32 | f'"{year2}/{mes2}/{dia2} {hora2}:{min2}:{sec2}"', f'{ratio}') 33 | return self.text -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/test_regions_as_discontinuos.py: -------------------------------------------------------------------------------- 1 | """A python script that will enter to each first level subfolder and then will run: 2 | 3 | cp ai_picker_scdl.inp temp_ai_picker.inp 4 | time discontinuous_picker.py -s "2023-10-01 00:00:00" -e "2023-10-02 23:59:59" -n 0.027777777777777776 5 | 6 | And then in the main directory will run: 7 | 8 | timeout -180 prune_and_count_events.py 9 | """ 10 | 11 | import os 12 | import sys 13 | import glob 14 | import shutil 15 | 16 | if __name__ == "__main__": 17 | if len(sys.argv) != 4: 18 | print("Usage: python3 test_regions_as_discontinuos.py '2023-10-01 00:00:00' '2023-10-01 23:59:59'") 19 | sys.exit(1) 20 | 21 | main_folder = sys.argv[1] 22 | #starttime = "2023-10-01 00:00:00" 23 | #endtime = "2023-10-01 23:59:59" 24 | starttime = sys.argv[2] 25 | endtime = sys.argv[3] 26 | # 0.027777777777777776 is 40 minutes in days 27 | n = 0.027777777777777776 28 | 29 | for folder in glob.glob(os.path.join(main_folder, "*")): 30 | if os.path.isdir(folder): 31 | print("\033[1;35m" + f"\n\n\n\n\tProcessing folder: {folder}\n\n\n\n" + "\033[0m") 32 | os.chdir(folder) 33 | 34 | # Copy the original file 35 | shutil.copyfile("ai_picker_scdl.inp", "temp_ai_picker.inp") 36 | 37 | # Run the discontinuous picker 38 | #os.system(f"time discontinuous_picker.py -s -e -n 0.027777777777777776") 39 | os.system(f"time discontinuous_picker.py -s \"{starttime}\" -e \"{endtime}\" -n {n}") 40 | 41 | # Remove the temp file 42 | os.remove("temp_ai_picker.inp") 43 | 44 | # Go back to the main folder 45 | os.chdir("..") 46 | 47 | # Run the prune and count script 48 | os.system("timeout -180 prune_and_count_events.py") 49 | 50 | # change the name of output file main_events_pruned.xml to main_events_pruned_starttime_endtime_n.xml 51 | os.rename("main_events_pruned.xml", f"main_events_pruned_{starttime}_{endtime}_{n}.xml") 52 | sys.exit(0) 53 | -------------------------------------------------------------------------------- /utils/phaseNet.inp: -------------------------------------------------------------------------------- 1 | # :::::::::::::::::::::::::::::: 2 | # waveform query params 3 | # :::::::::::::::::::::::::::::: 4 | 5 | # if download can be True, true, yes, Y, Yes 6 | download = yes 7 | 8 | # for waveform extraction 9 | ip_fdsn = http://10.100.100.232 10 | port_fdsn = 8091 11 | # seiscomp server for phase times query 12 | host = 10.100.100.232 13 | 14 | # for event query 15 | # SGC2020psahhr M:2.0, 2020-08-10 06:34:43, phases:41 16 | event_id = SGC2020psahhr 17 | 18 | # common parameters between event query and station query 19 | data_list = dataset/pred_mesetas_far.csv 20 | data_dir = /home/sgc/pred_data/mesetas_event_new 21 | #data_list = dataset/test_mesetas_far_filtered.csv 22 | #data_dir = /home/sgc/test_data/test_mesetas_far_filtered 23 | 24 | #data_list = dataset/train_mesetas.csv 25 | #data_dir = /home/sgc/train_data/mesetas 26 | # if is event query then put in stations no, N, False 27 | stations = no 28 | #stations = 'CLEJA', 'URMC', 'CLBC', 'PRA', 'VIL', 'TAPM', 'PIRM', 'MACC' 29 | #stations = 'PRA', 'VIL', 'TAPM', 'PIRM', 'MACC' 30 | 31 | init_time = 2020-03-05 00:00:00 32 | end_time = 2020-03-18 23:59:59 33 | lat_min = 3.3 34 | lat_max = 3.57 35 | lon_min = -74.366 36 | lon_max = -73.907 37 | magnitude = 10.0 38 | # total number of waveforms to download (in case of stations query) 39 | limit = 10000 40 | 41 | filter = yes 42 | # Filtra unicamente las estaciones listadas separadas por coma o no para filtrar 43 | # todo si filter fue yes 44 | filter_only_this = PRA, VIL, TAPM, PIRM, MACC 45 | 46 | # :::::::::::::::::::::::::::::: 47 | # phaseNet params 48 | # :::::::::::::::::::::::::::::: 49 | 50 | # Can be pred, train, tune or test 51 | mode = pred 52 | #model_dir = /home/sgc/mesetas/PhaseNet/log_mesetas/200310-162445 53 | #model_dir = /home/sgc/mesetas/PhaseNet/log_from_scratch/200310-191414 54 | model_dir = model/190703-214543 55 | output_dir = mesetas_pred_event_filter_1.3 56 | #output_dir = mesetas_test_filtered 57 | 58 | #log_dir = log_from_scratch 59 | log_dir = log_mesetas_tune 60 | batch_size = 128 61 | input_length = 9001 62 | epochs = 1 63 | learning_rate = 0.01 64 | -------------------------------------------------------------------------------- /utils/latest_events.sql: -------------------------------------------------------------------------------- 1 | SELECT 2 | POEv.publicID AS 'ID', 3 | DATE_FORMAT(Origin.time_value, '%Y/%m/%d %H:%i:%S') AS 'orig_time', 4 | Origin.latitude_value AS lat, 5 | Origin.longitude_value AS lon, 6 | ROUND(Origin.depth_value) AS z, 7 | ROUND(Magnitude.magnitude_value, 1) AS mag, 8 | Origin.creationInfo_author as 'author', 9 | Origin.quality_usedStationCount as 'stationcount', 10 | Origin.quality_usedPhaseCount as 'phasecount', 11 | Origin.latitude_uncertainty as 'lat_e', 12 | Origin.longitude_uncertainty as 'lon_e', 13 | Origin.depth_uncertainty as 'z_e', 14 | Origin.time_uncertainty as 't_e', 15 | Origin.quality_minimumDistance as 'min_dis', 16 | convert(cast(convert(EventDescription.text using latin1) as binary) using utf8) AS 'region' 17 | FROM 18 | Event AS EvMF left join PublicObject AS POEv ON EvMF._oid = POEv._oid 19 | left join PublicObject as POOri ON EvMF.preferredOriginID=POOri.publicID 20 | left join Origin ON POOri._oid=Origin._oid 21 | left join PublicObject as POMag on EvMF.preferredMagnitudeID=POMag.publicID 22 | left join Magnitude ON Magnitude._oid = POMag._oid 23 | left join EventDescription ON EvMF._oid=EventDescription._parent_oid 24 | WHERE 25 | Origin.time_value BETWEEN "{ti}" AND "{tf}" 26 | #AND Origin.latitude_value BETWEEN -5.5 AND 16.5 AND Origin.longitude_value BETWEEN -86.5 AND -66.7 27 | AND EvMF.type like 'earthquake' 28 | # ===================================================== 29 | # localizables (descomentar/comentar la siguiente línea para solo localizables/no localizables 30 | # ===================================================== 31 | #AND (EvMF.type like 'earthquake' or EvMF.type is null or EvMF.type like 'volcanic eruption'or AreaOfInfluence.area is not null) AND Magnitude.magnitude_value IS NOT null AND Origin.latitude_uncertainty IS NOT NULL AND Origin.longitude_uncertainty IS NOT NULL AND Origin.quality_azimuthalGap IS NOT NULL 32 | # ===================================================== 33 | # no localizables 34 | # ===================================================== 35 | #and (EvMF.type like 'not locatable' or EvMF.type like 'explosion' or EvMF.type like 'earthquake' or EvMF.type is null or EvMF.type like 'volcanic eruption' or AreaOfInfluence.area is not null) 36 | 37 | ORDER BY Origin.time_value -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | 131 | # vscode configuration 132 | .vscode/ 133 | 134 | # waveforms files 135 | *.mseed 136 | 137 | # time tracks EQTransformer 138 | time_tracks.pkl 139 | -------------------------------------------------------------------------------- /ai_picker.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Jul 2020 5 | 6 | @author: Emanuel Castillo T. [ecastillot@unal.edu.co], Daniel Siervo P. [ddsiervop@unal.edu.co] 7 | """ 8 | 9 | import os 10 | 11 | 12 | def change_env(picker, main_dir): 13 | """Change the environment excecution in the first line in the original ai_picker.py 14 | 15 | Parameters 16 | ---------- 17 | pick_time : str 18 | Picker type, can be eqt or pnet 19 | main_dir: str 20 | Directory of the main script 21 | 22 | Returns 23 | ------ 24 | void 25 | """ 26 | script_path = os.path.join(main_dir, 'utils/main_picker_temp.py') 27 | 28 | lines = open(script_path).readlines() 29 | 30 | assert picker in ('pnet', 'eqt', 'eqcc', 'eqcctps'), 'El picker debe ser "eqt" o "pnet", usó "%s"\n'%picker 31 | 32 | anaconda_path = read_params(os.path.join(main_dir, 'anaconda_path.txt'))['anaconda_path'] 33 | #anaconda_path = '/home/dsiervo/anaconda3/' 34 | exc_env_path = os.path.join(anaconda_path, 'envs/%s/bin/python'%picker) 35 | exc_env = '#!%s\n'%exc_env_path 36 | #exc_env = '#!/home/dsiervo/anaconda3/envs/%s/bin/python\n'%picker 37 | lines[0] = exc_env 38 | 39 | with open(os.path.join(main_dir, 'main_picker.py'), 'w') as f: 40 | f.writelines(lines) 41 | 42 | 43 | def read_params(par_file='ai_picker.inp'): 44 | lines = open(par_file, encoding='utf-8').readlines() 45 | par_dic = {} 46 | for line in lines: 47 | if line[0] == '#' or line.strip('\n').strip() == '': 48 | continue 49 | else: 50 | #print(line) 51 | l = line.strip('\n').strip() 52 | key, value = l.split('=') 53 | par_dic[key.strip()] = value.strip() 54 | return par_dic 55 | 56 | if __name__ == '__main__': 57 | 58 | # script directory for ai_picker.inp searching 59 | main_dir = os.path.dirname(os.path.abspath(__file__)) 60 | par_fn = 'ai_picker.inp' 61 | rel_par_path = os.path.join('../', par_fn) 62 | main_par_path = os.path.join(main_dir, par_fn) 63 | 64 | # verifying if ai_picker.inp exist in any of the following 3 paths. 65 | check_inp_dirs = [par_fn, rel_par_path, main_par_path] 66 | for rel_path in check_inp_dirs: 67 | if os.path.isfile(rel_path): 68 | inp_path = rel_path 69 | break 70 | 71 | par = read_params(inp_path) 72 | 73 | # changing the excecution line 74 | # using eqt as environment if the picker is eqcc or eqcctps 75 | if par['picker'] in ('eqcc', 'eqcctps'): 76 | par['picker'] = 'eqcc' 77 | change_env(par['picker'], main_dir) 78 | 79 | # runing ai_picker 80 | main_picker_path = os.path.join(main_dir, 'main_picker.py') 81 | # excecuting the main_picker.py 82 | os.system(main_picker_path) -------------------------------------------------------------------------------- /utils/merge_xml_picks.py: -------------------------------------------------------------------------------- 1 | 2 | # coding: utf-8 3 | 4 | # In[90]: 5 | 6 | import fnmatch 7 | import os 8 | 9 | 10 | def merge_xml_picks(picks_dir, out_path): 11 | picks = "" 12 | # lista que contiene una lista por cada archivo en la 13 | # carpeta picks_dir donde el primer elemento es una tupla de 2 elementos 14 | # que contiene los índices donde empieza y termina la etiqueta EventParameters 15 | # y el segundo elemento es el nombre del archivo 16 | indices = [] 17 | 18 | # variable para controlar si no existe un archivo con información en la 19 | # carpeta picks_dir. 20 | not_usefull_file = True 21 | 22 | for pick_file in os.listdir(picks_dir): 23 | if fnmatch.fnmatch(pick_file, '*.xml'): 24 | print (pick_file) 25 | # se salta un xml de pick si no tiene ninguna picada 26 | try: 27 | parte, ind, file_name = pick_extractor(pick_file, picks_dir) 28 | not_usefull_file = False 29 | except IndexError: 30 | print(f'No encontró datos en el archivo {pick_file}') 31 | #os.system('rm -fr %s'%pick_file) 32 | continue 33 | texto = "".join(parte) 34 | picks += texto 35 | 36 | indices.append([ind, file_name]) 37 | 38 | try: 39 | ind = indices[0][0] 40 | except IndexError: 41 | #print ('No se encontró ningún archivo .xml en la carpeta %s'%picks_dir) 42 | pass 43 | 44 | if not_usefull_file: 45 | print(f'\n\tNo se creo el archivo {out_path}\n') 46 | else: 47 | file_name = indices[0][1] 48 | 49 | top, bottom = complete_xml_file(file_name, ind, picks_dir) 50 | picks_file_complete = top+picks+bottom 51 | 52 | picks_final = open(out_path, "w", encoding='utf-8') 53 | picks_final.write(picks_file_complete) 54 | picks_final.close() 55 | print(f'\n\tArchivo final con los eventos generados:\n\t {out_path}') 56 | 57 | 58 | def pick_extractor(file_name, folder_name = "picks/"): 59 | path = os.path.join(folder_name, file_name) 60 | f = open(path, encoding='utf-8').readlines() 61 | 62 | ind = [] 63 | 64 | for idx, line in enumerate(f): 65 | clean_line = line.strip().strip("\n") 66 | 67 | if clean_line == "" or \ 68 | clean_line == "": 69 | #print line, idx 70 | ind.append(idx) 71 | 72 | part = f[ind[0]+1:ind[-1]] 73 | return part, ind, file_name 74 | 75 | 76 | def complete_xml_file(file_name, ind, folder_name = "picks/"): 77 | 78 | path = os.path.join(folder_name, file_name) 79 | f = open(path, encoding='utf-8').readlines() 80 | 81 | top = "".join(f[:ind[0]+1]) 82 | bottom = "".join(f[ind[1]:]) 83 | 84 | return top, bottom 85 | 86 | 87 | if __name__ == '__main__': 88 | merge_xml_picks('picks/', 'picks') 89 | -------------------------------------------------------------------------------- /utils/ai_picker_coalson.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2022-11-15 00:00:00 9 | endtime = 2022-11-17 23:53:00 10 | dt = 5400 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = 31.5722,31.68,-104.083,-103.9269 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH*, TX.PB13.01.HH*, TX.PB33.00.HH* 33 | 34 | #download_data = CM.URMC.00.HH* 35 | #download_data = no 36 | #download_data = all 37 | 38 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 39 | 40 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 41 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 42 | #filter_data = CM.RUS 43 | #filter_data = no 44 | 45 | ##############################------------ SECTION 4): Picker dirs ------------############################ 46 | 47 | general_data_dir = test/data 48 | general_output_dir = test/ 49 | 50 | #########------------ PhaseNet Dict ------------####### 51 | 52 | pnet_repository_dir = /home/daniel/PhaseNet 53 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 54 | pnet_mode = pred 55 | pnet_batch_size = 40 56 | pnet_plot_figure = False 57 | pnet_save_result = False 58 | 59 | #########------------ EQTransformer Dict ------------########## 60 | ##-->eqt_predictor: mseed or hdf5 61 | 62 | eqt_create_json = True 63 | eqt_predictor = mseed 64 | #eqt_model_dir = model/EqT_model.h5 65 | eqt_overlap = 0.3 66 | eqt_n_processor = 50 67 | eqt_detection_threshold = 0.003 68 | eqt_P_threshold = 0.001 69 | eqt_S_threshold = 0.02 70 | eqt_number_of_plots = 0 71 | eqt_plot_mode = time 72 | 73 | 74 | ##-->si eqt_predictor= mseed entonces: 75 | eqt_batch_size = 20 76 | ##-->si eqt_predictor= hdf5 entonces: 77 | eqt_create_hdf5 = True 78 | -------------------------------------------------------------------------------- /utils/ai_picker_event.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://rtserve.beg.utexas.edu, http://scarchive.beg.utexas.edu 7 | port = 8 | starttime = 2024-11-08 21:49:19 9 | endtime = 2024-11-08 22:02:19 10 | dt = 780 11 | 12 | # if true, the preferred origins that have depth < 20 km and hypocentral uncertainties < 20 km 13 | # will be written as evaluation status 'reported' and evaluation mode 'manual' 14 | # and reported_origins.txt will be created with the preferred origins IDs of the reported origins (true or false) 15 | write_reported = false 16 | 17 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 18 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 19 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 20 | # origenes que son el mismo sismo. 21 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 22 | locator_dict = {"LOCSAT": "iasp91"} 23 | 24 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 25 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 26 | db_sc = mysql://userro:Itr0nly@scarchive.beg.utexas.edu/seiscomp 27 | 28 | #check_db = no 29 | # lat_min, lat_max, lon_min, lon_max, or bna file 30 | #check_quadrant = ellington_circle.bna 31 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 32 | #check_quadrant = 31.4,31.844,-104.718,-104.095 33 | check_quadrant = /home/siervod/buffer_bna_delaware/bna1003_C_Culberson_V2.bna 34 | 35 | event_id = placeholder 36 | picks_dir = placeholder 37 | 38 | ##############################------------ SECTION 2): Stations to download ------------############################ 39 | download_data = TX.PB29.00.HH*, TX.PB37.00.HH*, TX.PB28.00.HH*, TX.PB38.00.HH* 40 | 41 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 42 | 43 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 44 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 45 | #filter_data = CM.RUS 46 | #filter_data = no 47 | 48 | ##############################------------ SECTION 4): Picker dirs ------------############################ 49 | 50 | general_data_dir = test/data 51 | general_output_dir = test/ 52 | 53 | #########------------ PhaseNet Dict ------------####### 54 | 55 | pnet_repository_dir = /home/daniel/PhaseNet 56 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 57 | pnet_mode = pred 58 | pnet_batch_size = 40 59 | pnet_plot_figure = False 60 | pnet_save_result = False 61 | 62 | #########------------ EQTransformer Dict ------------########## 63 | ##-->eqt_predictor: mseed or hdf5 64 | 65 | eqt_create_json = True 66 | eqt_predictor = mseed 67 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 68 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 69 | 70 | eqt_overlap = 0.3 71 | eqt_n_processor = 10 72 | eqt_detection_threshold = 0.003 73 | 74 | eqt_P_threshold = 0.001 75 | eqt_S_threshold = 0.02 76 | 77 | eqt_number_of_plots = 0 78 | eqt_plot_mode = time 79 | 80 | 81 | ##-->si eqt_predictor= mseed entonces: 82 | eqt_batch_size = 1 83 | ##-->si eqt_predictor= hdf5 entonces: 84 | eqt_create_hdf5 = True 85 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/ai_picker_scdl.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://rtserve.beg.utexas.edu, http://scarchive.beg.utexas.edu 7 | port = 8 | starttime = 2022-11-15 00:00:00 9 | endtime = 2022-11-17 23:53:00 10 | dt = 7200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://userro:Itr0nly@scarchive.beg.utexas.edu/seiscomp 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/ 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 5 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 5 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://scarchive.beg.utexas.edu/,http://rtserve.beg.utexas.edu:8080 7 | port = 8 | starttime = 2024-08-28 02:47:00 9 | endtime = 2024-08-28 02:59:59 10 | dt = 389 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@scarchive.beg.utexas.edu/seiscomp 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/28082024-024700_28082024-025959 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/snag/ai_picker_scdl.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://rtserve.beg.utexas.edu, http://scarchive.beg.utexas.edu 7 | port = 8 | starttime = 2022-11-15 00:00:00 9 | endtime = 2022-11-17 23:53:00 10 | dt = 7200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://userro:Itr0nly@scarchive.beg.utexas.edu/seiscomp 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/ 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 5 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 5 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/snag/ai_picker_scdl.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://rtserve.beg.utexas.edu, http://scarchive.beg.utexas.edu 7 | port = 8 | starttime = 2022-11-15 00:00:00 9 | endtime = 2022-11-17 23:53:00 10 | dt = 7200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://userro:Itr0nly@scarchive.beg.utexas.edu/seiscomp 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/ 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 5 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 5 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/event_picker.py: -------------------------------------------------------------------------------- 1 | #!/home/sgc/anaconda3/envs/phaseNet/bin/python 2 | # -*- coding: utf-8 -*- 3 | """ 4 | Created on Mar 5 11:25:33 2020 5 | @author: Daniel Siervo, emetdan@gmail.com 6 | """ 7 | import os 8 | from prepare_data import Picks 9 | 10 | def read_params(par_file='phaseNet.inp'): 11 | lines = open(par_file).readlines() 12 | par_dic = {} 13 | for line in lines: 14 | if line[0] == '#' or line.strip('\n').strip() == '': 15 | continue 16 | else: 17 | #print(line) 18 | l = line.strip('\n').strip() 19 | key, value = l.split('=') 20 | par_dic[key.strip()] = value.strip() 21 | return par_dic 22 | 23 | 24 | def init(): 25 | print('\n\tObtaning parameters\n') 26 | params = read_params() 27 | 28 | print(params) 29 | 30 | if params['download'] in ('yes', 'Yes', 'Y', 'True', 'true', 'TRUE'): 31 | print('\n\tDownloading waveforms\n') 32 | my_picks = Picks( 33 | event_ID=params['event_id'], 34 | ip_fdsn=params['ip_fdsn'], 35 | port_fdsn=params['port_fdsn'], 36 | host=params['host'], 37 | wf_file=params['data_list'], 38 | data_dir=params['data_dir'], 39 | stations=params['stations'], 40 | init_time = params['init_time'], 41 | end_time = params['end_time'], 42 | lat_min=params['lat_min'], 43 | lat_max=params['lat_max'], 44 | lon_min=params['lon_min'], 45 | lon_max=params['lon_max'], 46 | magnitude=params['magnitude'], 47 | limit=params['limit'], 48 | mode=params['mode'], 49 | input_length=params['input_length'], 50 | filter=params['filter'], 51 | filter_only_this=params['filter_only_this']) 52 | 53 | my_picks.get_picks() 54 | 55 | print('\n\tExcecuting PhaseNet\n') 56 | if params['mode'] == 'train': 57 | command = f"run.py --mode={params['mode']} \ 58 | --train_dir={params['data_dir']} --train_list={params['data_list']} \ 59 | --output_dir={params['output_dir']} --plot_figure --save_result \ 60 | --batch_size={params['batch_size']} --input_length={params['input_length']}\ 61 | --epochs={params['epochs']} --learning_rate={params['learning_rate']} \ 62 | --log_dir={params['log_dir']}" 63 | 64 | elif params['mode'] in ('pred', 'test'): 65 | command = f"python run.py --mode={params['mode']} --model_dir={params['model_dir']} \ 66 | --data_dir={params['data_dir']} --data_list={params['data_list']} \ 67 | --output_dir={params['output_dir']} --plot_figure --save_result \ 68 | --batch_size={params['batch_size']} --input_length={params['input_length']}\ 69 | --epochs={params['epochs']} --learning_rate={params['learning_rate']} \ 70 | --log_dir={params['log_dir']}" 71 | 72 | elif params['mode'] == 'tune': 73 | command = f"python run.py --mode=train --model_dir={params['model_dir']} \ 74 | --train_dir={params['data_dir']} --train_list={params['data_list']} \ 75 | --output_dir={params['output_dir']} --plot_figure --save_result \ 76 | --batch_size={params['batch_size']} --input_length={params['input_length']}\ 77 | --epochs={params['epochs']} --learning_rate={params['learning_rate']} \ 78 | --log_dir={params['log_dir']}" #--fine_tune 79 | 80 | print('\n', command, '\n') 81 | os.system(command) 82 | 83 | 84 | if __name__ == "__main__": 85 | init() -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/n-culberson_mentone/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://rtserve.beg.utexas.edu, http://scarchive.beg.utexas.edu 7 | port = 8 | starttime = 2025-03-03 05:46:28 9 | endtime = 2025-03-03 05:59:28 10 | dt = 780 11 | 12 | # if true, the preferred origins that have depth < 20 km and hypocentral uncertainties < 20 km 13 | # will be written as evaluation status 'reported' and evaluation mode 'manual' 14 | # and reported_origins.txt will be created with the preferred origins IDs of the reported origins (true or false) 15 | write_reported = true 16 | 17 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 18 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 19 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 20 | # origenes que son el mismo sismo. 21 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 22 | locator_dict = {"LOCSAT": "iasp91"} 23 | 24 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 25 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 26 | db_sc = mysql://userro:Itr0nly@scarchive.beg.utexas.edu/seiscomp 27 | 28 | #check_db = no 29 | # lat_min, lat_max, lon_min, lon_max, or bna file 30 | #check_quadrant = ellington_circle.bna 31 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 32 | check_quadrant = 31.762,32.097,-104.9,-103.23 33 | ##############################------------ SECTION 2): Stations to download ------------############################ 34 | download_data = TX.PB11.00.HH*, TX.PB44.00.HH*, 4O.CT02..HH*, GM.NMP11.01.HH*, 4O.SA09.00.HH*, 4O.SA07.00.HH*, GM.NMP12.01.HH*, 4O.BP01..HH*, 4O.WB11.00.HH*, 4O.WB09.00.HH*, 4O.WB07.00.HH*, GM.NMP31.01.HH*, GM.NMP41.01.HH*, SC.PDB.00.HH*, GM.NMP23.01.HH*, GM.NMP02.01.HH*, GM.NMP23.01.HH*, TX.PB51.00.HH*, 4O.PL01.00.HH*, GM.NMP51.01.HH*, TX.PB42.00.HH*, TX.PB54.00.HH*, TX.PB52.00.CH*, TX.PB53.00.CH*, TX.PB47.00.HH*, TX.PB46.00.HH* 35 | 36 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 37 | 38 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 39 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 40 | #filter_data = CM.RUS 41 | #filter_data = no 42 | 43 | ##############################------------ SECTION 4): Picker dirs ------------############################ 44 | 45 | general_data_dir = test/data 46 | general_output_dir = test/ 47 | 48 | #########------------ PhaseNet Dict ------------####### 49 | 50 | pnet_repository_dir = /home/daniel/PhaseNet 51 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 52 | pnet_mode = pred 53 | pnet_batch_size = 40 54 | pnet_plot_figure = False 55 | pnet_save_result = False 56 | 57 | #########------------ EQTransformer Dict ------------########## 58 | ##-->eqt_predictor: mseed or hdf5 59 | 60 | eqt_create_json = True 61 | eqt_predictor = mseed 62 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 63 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 64 | 65 | eqt_overlap = 0.3 66 | eqt_n_processor = 5 67 | eqt_detection_threshold = 0.003 68 | 69 | eqt_P_threshold = 0.001 70 | eqt_S_threshold = 0.02 71 | 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 5 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/eqcct_instances/snag/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://scarchive.beg.utexas.edu/,http://rtserve.beg.utexas.edu:8080 7 | port = 8 | starttime = 2024-08-28 02:47:00 9 | endtime = 2024-08-28 02:59:59 10 | dt = 389 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@scarchive.beg.utexas.edu/seiscomp 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/28082024-024700_28082024-025959 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/delaware/n-culberson_mentone/ai_picker_scdl.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://rtserve.beg.utexas.edu, http://scarchive.beg.utexas.edu:8880 7 | port = 8 | starttime = 2022-11-15 00:00:00 9 | endtime = 2022-11-17 23:53:00 10 | dt = 5400 11 | 12 | # if true, the preferred origins that have depth < 20 km and hypocentral uncertainties < 20 km 13 | # will be written as evaluation status 'reported' and evaluation mode 'manual' 14 | # and reported_origins.txt will be created with the preferred origins IDs of the reported origins (true or false) 15 | write_reported = true 16 | 17 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 18 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 19 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 20 | # origenes que son el mismo sismo. 21 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 22 | locator_dict = {"LOCSAT": "iasp91"} 23 | 24 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 25 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 26 | db_sc = mysql://userro:Itr0nly@scarchive.beg.utexas.edu/seiscomp 27 | 28 | #check_db = no 29 | # lat_min, lat_max, lon_min, lon_max, or bna file 30 | #check_quadrant = ellington_circle.bna 31 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 32 | check_quadrant = 31.762,32.097,-104.9,-103.23 33 | ##############################------------ SECTION 2): Stations to download ------------############################ 34 | download_data = TX.PB11.00.HH*, TX.PB44.00.HH*, 4O.CT02..HH*, GM.NMP11.01.HH*, 4O.SA09.00.HH*, 4O.SA07.00.HH*, GM.NMP12.01.HH*, 4O.BP01..HH*, 4O.WB11.00.HH*, 4O.WB09.00.HH*, 4O.WB07.00.HH*, GM.NMP31.01.HH*, GM.NMP41.01.HH*, SC.PDB.00.HH*, GM.NMP23.01.HH*, GM.NMP02.01.HH*, GM.NMP23.01.HH*, TX.PB51.00.HH*, 4O.PL01.00.HH*, GM.NMP51.01.HH*, TX.PB42.00.HH*, TX.PB54.00.HH*, TX.PB52.00.CH*, TX.PB53.00.CH*, TX.PB47.00.HH*, TX.PB46.00.HH* 35 | 36 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 37 | 38 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 39 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 40 | #filter_data = CM.RUS 41 | #filter_data = no 42 | 43 | ##############################------------ SECTION 4): Picker dirs ------------############################ 44 | 45 | general_data_dir = test/data 46 | general_output_dir = test/ 47 | 48 | #########------------ PhaseNet Dict ------------####### 49 | 50 | pnet_repository_dir = /home/daniel/PhaseNet 51 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 52 | pnet_mode = pred 53 | pnet_batch_size = 40 54 | pnet_plot_figure = False 55 | pnet_save_result = False 56 | 57 | #########------------ EQTransformer Dict ------------########## 58 | ##-->eqt_predictor: mseed or hdf5 59 | 60 | eqt_create_json = True 61 | eqt_predictor = mseed 62 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 63 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 64 | 65 | eqt_overlap = 0.3 66 | eqt_n_processor = 5 67 | eqt_detection_threshold = 0.003 68 | 69 | eqt_P_threshold = 0.001 70 | eqt_S_threshold = 0.02 71 | 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 5 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/playback_eqcct/old_eqcct_instances_20241212/snag/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://scarchive.beg.utexas.edu/,http://rtserve.beg.utexas.edu:8080 7 | port = 8 | starttime = 2024-08-28 02:47:00 9 | endtime = 2024-08-28 02:59:59 10 | dt = 389 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@scarchive.beg.utexas.edu/seiscomp 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/28082024-024700_28082024-025959 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/08082024-200000_08082024-204000/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-08 20:00:00 9 | endtime = 2024-08-08 20:40:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/08082024-200000_08082024-204000 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/08082024-203800_08082024-211800/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-08 20:38:00 9 | endtime = 2024-08-08 21:18:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/08082024-203800_08082024-211800 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/08082024-211600_08082024-215600/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-08 21:16:00 9 | endtime = 2024-08-08 21:56:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/08082024-211600_08082024-215600 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/08082024-215400_08082024-223400/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-08 21:54:00 9 | endtime = 2024-08-08 22:34:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/08082024-215400_08082024-223400 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/08082024-223200_08082024-231200/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-08 22:32:00 9 | endtime = 2024-08-08 23:12:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/08082024-223200_08082024-231200 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/08082024-231000_08082024-235000/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-08 23:10:00 9 | endtime = 2024-08-08 23:50:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/08082024-231000_08082024-235000 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/08082024-234800_09082024-002800/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-08 23:48:00 9 | endtime = 2024-08-09 00:28:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/08082024-234800_09082024-002800 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/09082024-002600_09082024-010600/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-09 00:26:00 9 | endtime = 2024-08-09 01:06:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/09082024-002600_09082024-010600 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/09082024-010400_09082024-014400/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-09 01:04:00 9 | endtime = 2024-08-09 01:44:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/09082024-010400_09082024-014400 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | -------------------------------------------------------------------------------- /utils/public_eqcct/public_eqcct/snag/test/output/09082024-014200_09082024-022200/ai_picker.inp: -------------------------------------------------------------------------------- 1 | ##############################------------ SECTION 1): Client Dict and Picker Mode ------------############################ 2 | 3 | #-->picker 'pnet', 'eqt' o ('eqcc' o 'eqcctps') 4 | picker = eqcc 5 | 6 | ip = http://sc3primary.beg.utexas.edu/,http://rtserve.beg.utexas.edu 7 | port = 8 | starttime = 2024-08-09 01:42:00 9 | endtime = 2024-08-09 02:22:00 10 | dt = 1200 11 | 12 | # localizadores y modelos de velocidades que se usarán para localizar los eventos. 13 | # Si hay mas de un elemento en el diccionario se unirán los orígenes que se encuentren 14 | # con cada localizador para que luego el scevent una en un mismo evento a aquellos 15 | # origenes que son el mismo sismo. 16 | #locator_dict = {"LOCSAT": "iasp91", "Hypo71":"RSNC" } 17 | locator_dict = {"LOCSAT": "iasp91"} 18 | 19 | # base de datos de SeisComP3 desde donde se tomará la configuración de las estaciones y 20 | # se calcularán las amplitudes en las trazas para el cálculo de magnitud 21 | db_sc = mysql://sysop:sysop@sc3primary.beg.utexas.edu/seiscomp3 22 | 23 | #check_db = yes 24 | # lat_min, lat_max, lon_min, lon_max, or bna file 25 | #check_quadrant = ellington_circle.bna 26 | # latitude BETWEEN 32.4 AND 32.6 AND longitude BETWEEN -101.3 AND -101.2 27 | check_quadrant = snag.bna 28 | ##############################------------ SECTION 2): Stations to download ------------############################ 29 | # PB28, PB37, PB35, PB36, PB29, PB38, SA02, SA07 30 | #download_data = TX.PB28.00.HH*, TX.PB37.00.HH*, TX.PB35.00.HH*, TX.PB36.00.HH*, TX.PB29.00.HH*, TX.PB38.00.HH*, 4O.SA02.00.HH*, 4O.SA07.00.HH* 31 | # PB24, WB03, PB40, PB34, PB20, PB23, PB25, PB31, WB01, WB02, WB04, PB43 32 | #download_data = TX.PB24.00.HH*, 4O.WB03.00.HH*, TX.PB40.00.HH*, TX.PB34.00.HH*, TX.PB20.00.HH*, TX.PB23.00.HH*, TX.PB25.00.HH*, TX.PB31.00.HH*, 4O.WB01.00.HH*, 4O.WB02.00.HH*, 4O.WB04.00.HH*, TX.PB43.00.HH* 33 | # tx.yk01, sc.htms, tx.post, tx.mb04, tx.odesa, sc.jal, sc.sss, sc.cprx, n4.mstx 34 | download_data = TX.ET01.00.HH*, TX.SNAG.00.HH*, US.NATX.00.BH*, TX.CRHG.00.HH*, N4.Z38B.00.HH*, AG.WLAR.00.HH*, N4.441B.00.HH*, TX.237B..BH* 35 | #download_data = CM.URMC.00.HH* 36 | #download_data = no 37 | #download_data = all 38 | 39 | ##############################------------ SECTION 3): Stations to filter (ONLY FOR PhaseNet) ------------############################ 40 | 41 | #filter_data = CM.TAPM, CM.PIRM, CM.MACC, CM.PRA, CM.BELO, CM.CVER, CM.CHI, CM.ORTC, CM.VIL 42 | filter_data = CM.RUS, CM.PTB, CM.OCA, CM.SPBC, CM.YPLC 43 | 44 | #########------------ PhaseNet Dict ------------####### 45 | 46 | pnet_repository_dir = /home/daniel/PhaseNet 47 | pnet_model_dir = /home/daniel/PhaseNet/model/190703-214543 48 | pnet_mode = pred 49 | pnet_batch_size = 40 50 | pnet_plot_figure = False 51 | pnet_save_result = False 52 | 53 | ##############################------------ SECTION 4): Picker dirs ------------############################ 54 | 55 | general_data_dir = test/data 56 | general_output_dir = test/output/09082024-014200_09082024-022200 57 | 58 | #########------------ EQCCT Dict ------------########## 59 | ##-->eqt_predictor: mseed or hdf5 60 | 61 | eqt_create_json = True 62 | eqt_predictor = mseed 63 | 64 | #eqcc_P_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_011.h5 65 | #eqcc_S_model_dir = /home/siervod/sc3_ai_picker/model/EQCCT_TF_Delaware/test_trainer_S_005.h5 66 | 67 | eqt_overlap = 0.3 68 | eqt_n_processor = 10 69 | eqt_detection_threshold = 0.003 70 | eqt_P_threshold = 0.001 71 | eqt_S_threshold = 0.02 72 | eqt_number_of_plots = 0 73 | eqt_plot_mode = time 74 | 75 | 76 | ##-->si eqt_predictor= mseed entonces: 77 | eqt_batch_size = 10 78 | ##-->si eqt_predictor= hdf5 entonces: 79 | eqt_create_hdf5 = True 80 | --------------------------------------------------------------------------------