5.2.1.1. eqcorrscan.utils.catalog_to_dd.readSTATION0

eqcorrscan.utils.catalog_to_dd.readSTATION0(path, stations)[source]

Read a Seisan STATION0.HYP file on the path given.

Outputs the information, and writes to station.dat file.

Parameters:
  • path (str) – Path to the STATION0.HYP file
  • stations (list) – Stations to look for
Returns:

List of tuples of station, lat, long, elevation

Return type:

list

>>> readSTATION0('eqcorrscan/tests/test_data', ['WHFS', 'WHAT2', 'BOB'])
[('WHFS', -43.261, 170.359, 60.0), ('WHAT2', -43.2793, 170.36038333333335, 95.0), ('BOB', 41.408166666666666, -174.87116666666665, 101.0)]