scale_catch.r script is designed to change catch in a catch.ts file. For each group, or 'ALL', it will replace the original catch with a specified value in a data file, or multiply by a scalar over a specified time period. Made more general, and the data files are included.
A bit nitpicky but can you separate the function and the call script into their own files? It's easier to source in the function that way for other pre-processing scripts
scale_catch.r script is designed to change catch in a catch.ts file. For each group, or 'ALL', it will replace the original catch with a specified value in a data file, or multiply by a scalar over a specified time period. Made more general, and the data files are included.