Skip to content

Commit

Permalink
add hardcode for N.WJMF.EB
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuwq0 committed Feb 8, 2024
1 parent 4cb5cbd commit cc75543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phasenet/data_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ def read_mseed_3c(self, fname, response=None, highpass_filter=0.0, sampling_rate
# stream += obspy.read(fp)
stream = obspy.read(file)
trace = stream.merge(fill_value="latest")[0]
station_ids.append(trace.id[:-1])
# station_ids.append(trace.id[:-1])
station_ids.append(trace.id.rstrip("B")[:-1]) # Hardcode for station N.WJMF.EB

## interpolate to 100 Hz
if abs(trace.stats.sampling_rate - sampling_rate) > 0.1:
Expand Down

0 comments on commit cc75543

Please sign in to comment.