-
Notifications
You must be signed in to change notification settings - Fork 72
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
Improve input syntax for frequency differencing operation #967
Comments
Hey @leewujung, Sorry for the delay, it took some time for development setup due to issues with setting up docker. I have a query regarding this issue - So now there should be two arguments where one equation is in terms of chan and other equation in terms of freq and only one of them should be provided?
Is this the correct function definition according to the change? Also can i be assigned this issue? |
Hey @praneethratna : no worries, thanks for contributing! I just assigned you to the issues. Yes I was thinking to have something like this:
Did the above answer your question? |
Hey @leewujung, yes and one small doubt - in the freq equation do we consider freqB as -18 khz or it is 18 khz? |
It is 18 kHz (and that's that ES18 in the channel string, similarly for 38 kHz) |
Got it!, will make a PR as soon as I'm done finishing with the changes. |
Hey @leewujung Sorry if I'm asking too many question as I'm new to sonar data but can the unit of freqA/B vary in terms of Hz something like MHz or GHz or is it only kHz and similarly for diff as well? |
Oh no worries at all! That's a great question... For the instruments echopype supports at the moment, it will always be kHz, but yes for sonar systems in general it can be others, like Hz, MHz, GHz. For the difference, we can assume to just allow X dB, and X can be a negative or positive number, or 0. |
@leewujung Cool! Got it, So I'll make changes such that freqA/B can be anything like kHz,MHz etc and diff being only in dB. |
Hey @leewujung, what is the format of channel names? Do they always end with ES or is it arbitrary? |
It is somewhat arbitrary. For the echosounders we support now, you can take a look at the values in the |
Also, one more thing. The frequency they put in has to be one of the values in |
Ohh, it seems channel names need not end with ES. Also, yes i think extracting channel names from something like |
That seems a good idea! It is actually easier to read as well. Thanks! |
@leewujung This can be closed now! |
Oh right! Closing it now as it has been addressed in #1106! :) |
Currently the frequency differencing implementation takes an awkward input that forces users to separate out the channels or frequencies from the operators (>, < , etc) that operates on them. I think the frequency differencing criteria (something like
chanA - chanB >= X dB
orfreqA - freqB >= X dB
) is something that can be done with regular expression and enhances the usability significantly.Requirements
The text was updated successfully, but these errors were encountered: