-
Notifications
You must be signed in to change notification settings - Fork 4
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
Change how unsexed and sexed fish are included for biomass apportionment #183
Comments
I think after the last couple weeks we've resolved this issue fully with the new doc page on biomass apportioning. @brandynlucca : let me know if you think we should keep this open for any reason. I think we should treat abundance apportioning as a separate issue, since it's tracked in #217. |
@leewujung: I need to comb through the transect analysis portion of the code to make a few adjustments (and validate) toward how unsexed fish are handled. This is a parallel issue, I suppose, with both the transect analysis and kriging apportionment. Now that we have a better grasp of the intent and calculations, this should be a pretty quick read-through and change that I can incorporate into a separate PR. |
Sounds good. Thanks! |
The main thinking behind this issue can be attributed to some confusion arising from how the After discussions with FEAT and the updated implementation in PR #241, the treatment of male/female/unsexed fish from both stations (1: unaged; 2: aged) has been updated to match the original This can be closed once PR #241 is closed. |
When calculating the sex proportions of fish from stations 1 and 2, the current
main
branch sums the sexed (i.e.male
andfemale
) fish from station 2 and all fish from station 1 (i.e.male
,female
, andunsexed
).https://github.com/uw-echospace/EchoPro/blob/93f0dcfea5cab6949c7d110eb0016014fbbcfcd0/EchoPro/computation/transect_results.py#L420-L426
This implementation did not seem to be correct. However, there were some ambiguities in the Matlab source code that made discerning the correct implementation difficult. After meeting with Chu, we have gained some clarity on both the Matlab implementation as well as the intention/rationale behind the calculation. Consequently, the updated working branch implementation may be incorrect.
https://github.com/uw-echospace/EchoPro/blob/2157de885498f6b6d951ccee85ed7a6dfb8818ba/EchoPro/survey.py#L646-L652
Notably, the intent of this processing is to:
stratum_num
)male
andfemale
Therefore, changes are likely required for the initial sex proportion calculations:
https://github.com/uw-echospace/EchoPro/blob/2157de885498f6b6d951ccee85ed7a6dfb8818ba/EchoPro/survey.py#L591-L764
This then may necessitate changes in how the sexed and unsexed proportioned biomasses are calculated:
https://github.com/uw-echospace/EchoPro/blob/2157de885498f6b6d951ccee85ed7a6dfb8818ba/EchoPro/survey.py#L870-L1007
Lastly, the appropriate documentation explaining both the scientific rationale/context and mathematical equations (i.e. within the related ReadTheDocs) will provide clarity on what the software is specifically doing at this step.
The text was updated successfully, but these errors were encountered: