Skip to content

Commit

Permalink
Merge pull request #264 from noisepy/niyiyu/pnw_return_raw
Browse files Browse the repository at this point in the history
Update PNWstore reader
  • Loading branch information
niyiyu authored Nov 13, 2023
2 parents 0833d11 + 8aedcab commit 26fb304
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/noisepy/seis/pnwstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ def read_data(self, timespan: DateTimeRange, chan: Channel) -> ChannelData:
f.seek(byteoffset)
buff = io.BytesIO(f.read(bytes))
stream += obspy.read(buff)
# taper each segment
stream = stream.taper(max_percentage=0.03)
return ChannelData(stream.merge(fill_value=0))
return ChannelData(stream)

def get_inventory(self, timespan: DateTimeRange, station: Station) -> obspy.Inventory:
return self.channel_catalog.get_inventory(timespan, station)
Expand Down

0 comments on commit 26fb304

Please sign in to comment.