GeoscienceAustralia / hiperseis

High Performance Seismologic Data and Metadata Processing System
GNU General Public License v3.0
57 stars 22 forks source link

Change to network code finding function in seismic/catalogue/merge_catalogues_python_new/ #237

Closed Lachlan-Adams closed 2 years ago

Lachlan-Adams commented 2 years ago

I made the changes @rh-downunder suggested to the network code finding function for the catalogue compilation workflow. Also I have made a minor correction to the function which updates the hypocentres of events in the seismic/ssst_relocation/relocation/main.py algorithm to improve computation time.

I am unsure why, but after a few iterations of the relocation algorithm during testing, the function extract_hypocentres_from_database in seismic/ssst_relocation/relocation/Relocation.py fails to find some hypocentres. I suspect this may be because iLoc has failed to find a convergent hypocentre for some of the events, potentially erasing the preferred origin ID from the database. I have changed the code to include a 'try' command in update_hypocentres_from_database to temporarily fix this issue.

geojunky commented 2 years ago

Hi @Lachlan-Adams , feel free to merge this PR to develop.