Skip to content

Commit

Permalink
Add BlockOverlap handling for febus format.
Browse files Browse the repository at this point in the history
  • Loading branch information
atrabattoni committed Jun 7, 2024
1 parent 3ca06ad commit f73a42f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xdas/io/febus.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def read(fname):
chunks = VirtualSource(zone[name])
delta = [zone.attrs["Spacing"][1] / 1000.0, zone.attrs["Spacing"][0]]
name = "".join(["_" + c.lower() if c.isupper() else c for c in name]).lstrip("_")
noverlap = chunks.shape[1] // 4
if "BlockOverlap" in zone.attrs:
noverlap = zone.attrs["BlockOverlap"][0]
else:
noverlap = chunks.shape[1] // 4
chunks = chunks[:, noverlap:-noverlap, :]
times = times + noverlap * delta[0]
dt, dx = delta
Expand Down

0 comments on commit f73a42f

Please sign in to comment.