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

Refactor split-beam processing and add BB with pc option #971

Merged
merged 84 commits into from
Mar 11, 2023

Conversation

leewujung
Copy link
Member

@leewujung leewujung commented Mar 10, 2023

Overview

This PR completely refactors the split-beam processing code and addresses #890.

Details

Immediately related to split-beam processing

  • consolidate complex sample split-beam processing to a single function get_angle_complex_samples, which:
    • handles both BB and CW cases
    • handles both with and without pulse compression cases
  • fix bugs in determining whether to pass in all or single channels for split-beam processing based on beam_type

Others

  • add angle_sensitivity_* to CAL_PARAMS
  • add BB freq_center re frequency_nominal scaling for angle_sensitivity_* and beamwidth_* in cal params construction
  • move get_filter_coeff() and get_vend_filter_EK80() to ek80_complex.py
    • this allows using pulse compression in split-beam BB complex with pc option
  • change compress_pulse to output xr.DataArray instead of xr.Dataset
  • rename test_consolidate.py to test_consolidate_integration.py
  • overhaul docstring

Note this built on top of #955 so need to pull in dev once that is merged.

…_params; still need to do the same for CalibrateEK60 and CalibrateAZFP
leewujung and others added 12 commits March 11, 2023 02:57
Co-authored-by: Don Setiawan <landungs@uw.edu>
Co-authored-by: Don Setiawan <landungs@uw.edu>
Co-authored-by: Don Setiawan <landungs@uw.edu>
Co-authored-by: Don Setiawan <landungs@uw.edu>
Co-authored-by: Don Setiawan <landungs@uw.edu>
Co-authored-by: Don Setiawan <landungs@uw.edu>
Co-authored-by: Don Setiawan <landungs@uw.edu>
Copy link
Member

@lsetiawan lsetiawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@leewujung
Copy link
Member Author

Found a missing test case for EK80 CW power data. I am pretty sure the code works right now, but don't have Echoview dongle to produce a comparison dataset. Will get this PR merged and add this later.

@leewujung leewujung merged commit c1be8c8 into OSOceanAcoustics:dev Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants