-
Notifications
You must be signed in to change notification settings - Fork 0
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
Build hydradata input object for Georges Bank data for mskeyruns. #22
Comments
@gavinfay I can work on this today. The |
I changed to growth_type 3 instead of 4, which sets We may want to consider adjustments so that there is a nonzero probability of growing into the largest length bins given this constraint. A hack would be increasing |
Thanks @sgaichas. Yes, those early high catches from the foreign fleet are problematic. The surplus production over that period is incompatible with the survey time series. In part this is due to stock dynamics being driven by exploitation pattern not just on Georges Bank for some of our stocks (e.g. the pelagics, also silver hake and spiny dogs). In previous fits to MS-PROD, we got around this (also known as sticking one's fingers in one ears and saying 'lalalala') by removing the initial few years from the dataset. It might make sense to do that here, otherwise I suspect we will have a series of weird recruitment patterns estimated.... (or we allow for additional mortality but hope to have something simple to start with...). |
Well @gavinfay I am definitely missing something. I've fixed all the data errors I can find, but I cannot get a run where anything survives past the first timestep, even with catch set to 0 and the isprey matrix all 0. |
@gavinfay on the growth issue, I can confirm that the simulated dataset also produces 0 |
@sgaichas Recruits are not being populated because |
Aha! Thanks for finding that. |
Hmm. I think adding the OR statement sounds like a decent fix for now. Will try and see what happens. BTW: Stock Synthesis now has a predator module! |
The OR statement seemed to do the trick. |
Great! Yes, those comps inpN probably are Nfish for all; I will make an mskeyrun issue for those and see how quickly we can fix them. Setting to 100 sounds like a reasonable temporary fix. The other data correction not currently included is to apply a discard mortality rate (< the implied 100%). Catches for dogfish and skates are currently overestimated because I haven't corrected for this. I will add an issue to mskeyrun for that as well. If those two species are getting killed off too quickly scaling the catch down a bit would be reasonable. |
Aha. Will keep that in mind. |
They have been input as total biomass, but mskeyrun data is in mean kg/tow. So I can do whichever is easiest. I started with total B thinking it would be equivalent to how the simulated data was set up. |
@gavinfay we are in the process of adding ntows and ntrips for comps data. We are still doing a review, but they are likely to result in inpNs lower than 100. Survey mean n tows sampling GB lengths for the time series:
Mean number of fishery trips sampled for the time series (herring number under investigation, and winter skate may be all skates):
|
OK, thanks! (yes 100 seems like a large sample size in general) I was running into some strange behavior, where there was no prediction of catch in the first year, and I think I have satisfied myself this is due to the order of operations meaning that N() for a given time step is actually the N at the end of the time step (it is deprecated by that time step's mortality). Thus, within a loop that goes from t=2, the first calculation of catch is for t=2 and thus there is no mortality (of any kind) during time step 1 (the initial population size). I "think" this is ameliorated when there is more than 1 time step per yr but the order of operations is a little different than what I was expecting, being used to thinking about N being the population size at the beginning of the time step (i.e. requires last time step's mortality to calculate it). I might be misreading things, but I think I need to think about how to do this for the first time step. It's possibly a simple fix of looping from t=1 but forcing the initial N update to take from the same time step instead of the previous time step in that first timestep. (i.e. don't run |
Good catch--your logic sounds right to me. I cannot remember whether there was any logic to how I originally coded the order of operations. Probably there wasn't... |
@sgaichas Somehow |
Thank you for catching that! I will fix |
Fleet ordering for the Before rebuilding the full data object I am waiting for final review on our updated ntows and ntrips sample sizes for comps. |
Updated inputs fix the fishery order in A correction to fishery length comp proportions is they are now based on numbers at length, prior to this they had been proportions resulting from expansion to catch biomass at length. |
@sgaichas, are the survey time series data adjusted for Albatross/Bigelow differences (e.g. via calibration coefficients) during index generation? |
Correct, this time series is adjusted, and is in Albatross units. I also have them separate if you want to try fitting separately. |
Great! Maybe at some point yes I think that would be good to separate and try it. Not going to prioritize that for now though. Thank you! |
@gavinfay latest push includes .dat .pin and -ts.dat files with 10 fleets where species=fleet; filename I have spot checked data but have not tried a run yet. note that this also has fishery length comps with no borrowing across years. so for instance goosefish has no early length data now. we are still double checking survey length comps, for now have not changed. |
This may run better: bc3cc89 reformats for current .tpl with M1, oF and oFdev phases added to .dat and M1 matrix removed, and |
Commit 8ac9233 adds working potentially estimable vulnerability for each prey item to each predator. Parameterized as relative to other food, and is a vector |
@gavinfay @emilylil |
No description provided.
The text was updated successfully, but these errors were encountered: