-
Notifications
You must be signed in to change notification settings - Fork 1
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
Differences in KRM implementations #30
Comments
I've gone through some old KRM code of mine and Clay's and here is what I've found so far:
|
I'm adding @phishdoc - John Horne - to the string. |
The scan of the Basic code has been added to the echoSMs documentation (in a The values of sound speed and density for the "medium" are entirely up the user, but the model takes these to be the surrounding water. The model code doesn't offer an option to select the water or body as the medium that the swimbladder is in, but this can be added if we want. |
Thanks for adding Clays' code! I think we should have the option of setting the medium to water or the body. I've gone with using the body as the medium for the embedded target, such as a swimbladder, but to compare to historical analyses or for whatever reason, the user should have control of that. We can discuss more at our telecon. |
Options to select whether the swimbladder backscatter is calculated relative to the water or the body have been added to release v0.6.5. |
The Clay & Horne (1994) paper, in the line immediately after equation 13, says
and$k_b \approx k$ at low contrast.
Setting$k_b$ to $k$ gives TS results that differ by around 1 dB compared to not setting $k_b$ to be $k$ for some example datasets. It is not clear why this approximation is necessary (it doesn't simplify the calculations at all) and it perhaps leads to less accurate TS results. Some other implementations of the KRM that echoSMs has been compared against set $k_b$ to $k$ , so echoSMs currently does the same.
To allow for testing and comparison of other KRM implementations, the fish shapes from the online KRM TS calculator (https://www.fisheries.noaa.gov/data-tools/krm-model) have been included in echoSMs in a toml-formatted file (or use the KRMorganism Python class for easy access).
The TS for the sardine shape from there can be calculated and compared to the online results with:
The text was updated successfully, but these errors were encountered: