Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add handling of "Average" and "Alt_Average" data types to Signature #229

Merged
merged 7 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
*.ipynb filter=nbstripout
*.ipynb diff=ipynb
stglib/_version.py export-subst
stglib/tests/data/055109_20220808_1605.zip filter=lfs diff=lfs merge=lfs -text
stglib/tests/data/055109_20220808_1605_config.yaml filter=lfs diff=lfs merge=lfs -text
stglib/tests/data/gatts_055109_20220808_1605.txt filter=lfs diff=lfs merge=lfs -text
4 changes: 4 additions & 0 deletions stglib/aqd/aqdutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,10 @@ def check_attrs(ds, waves=False, hr=False, inst_type="AQD"):
ds.attrs["bin_size"] = ds.attrs["SIGBurstHR_CellSize"]
elif ds.attrs["data_type"].upper() == "ECHO1":
ds.attrs["bin_size"] = ds.attrs["SIGEchoSounder_CellSize"]
elif ds.attrs["data_type"].upper() == "AVERAGE":
ds.attrs["bin_size"] = ds.attrs["SIGAverage_CellSize"]
elif ds.attrs["data_type"].upper() == "ALT_AVERAGE":
ds.attrs["bin_size"] = ds.attrs["SIGAlt_Average_CellSize"]

if ds.attrs["frequency"] == 1000 or ds.attrs["frequency"] == 500:
ds.attrs["beam_angle"] = 25
Expand Down
Loading
Loading