Skip to content

Commit

Permalink
neubrex decimation check
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers committed Dec 4, 2024
1 parent ad2ecb5 commit 9768840
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dascore/io/neubrex/utils_das.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def _get_time_coord(acoustic):
"""Get the time coordinate."""
attrs = acoustic.attrs

assert attrs["TimeDecimationFilter"] == 0, "not yet implemented"
# We havent encountered a time decimated file yet; raise over guess
assert attrs["TimeDecimationFilter"] in {0, 1}, "not implemented"

gps = unbyte(attrs["GPSTimeStamp(UTC)"])
cpu = unbyte(attrs["CPUTimeStamp(UTC)"])
Expand All @@ -42,7 +43,8 @@ def _get_dist_coord(acoustic):
dist_len = acoustic.shape[1]
attrs = acoustic.attrs

assert attrs["DistanceDecimationFilter"] == 0, "not yet implemented"
# We havent encountered a distance decimated file yet; raise over guess
assert attrs["DistanceDecimationFilter"] in {0, 1}, "not yet implemented"

step = attrs["SpatialSamplingInterval"]
units = dc.get_quantity(attrs["StartStopPositionUnit"])
Expand Down

0 comments on commit 9768840

Please sign in to comment.