MFEh2o / db

**Contains the main issue tracker for the MFE DB!** Functions for interacting with the MFE database, in script format. (See also MFEUtilities, which is an R package that includes many/most of the same functions).
1 stars 0 forks source link

Fish entry tool: re-fit von Bertalanffy curves #155

Open kaijagahm opened 3 years ago

kaijagahm commented 3 years ago

Notes from KG/SEJ meeting 6/25: The von Bertalanffy check doesn't currently work well. It flags almost all fish as being too small/overestimates how large they should be based on growth curves.

Likely, the equation needs to be re-parameterized (separate parameters for Long Lake and the other lakes). Can do this by pulling out fish ages and weights from the FISH_OTOLITHS table and fitting growth curves to them. Put the revised parameters into the existing vonBCheck and vonB functions. Note that doing this may depend on first resolving issue #134.

Another note: should add another if() statement to the check to limit it to only LMB. Currently it checks all species, but the growth curves we have really only apply to LMB.

kaijagahm commented 3 years ago

After re-parameterizing the equation, the new parameters will need to be hard-coded into the vonBCheck() function, which calls the vonB() function. The code for these functions can be found in 'checks.R' in the fish entry tool. Currently, they're at lines 718-803.

When this is fixed, the vonBCheck line in 'fishEntry.R' should be un-commented (currently it's line 369 of fishEntry.R).