pfmc-assessments / nwfscSurvey

Tool to pull and process NWFSC West Coast groundfish survey data for use in PFMC groundfish stock assessments
http://pfmc-assessments.github.io/nwfscSurvey/
10 stars 8 forks source link

Documentation fixes & option to not rescale comps to sum to 100 #117

Closed iantaylor-NOAA closed 1 year ago

iantaylor-NOAA commented 1 year ago

This pull request mixes two issues. @chantelwetzel-noaa, let me know if you would like me to separate them.

There are three commits related to improving the documentation and then a fourth commit adding a new sum100 argument to SurveyLFs.fn(). This is similar to the sum1 input to PacFIN.Utilities::writeComps(): https://github.com/pfmc-assessments/PacFIN.Utilities/blob/main/R/writeComps.R#L49-L50 (where our code has been rescaling commercial comps to sum to 1.0 and survey comps to sum to 100 for no good reason since Stock Synthesis rescales them internally regardless). If we DON'T rescale the comps then it's possible to look at the estimated total amount of fish of different sizes as shown in the figure below for petrale. plot