feature(#30): Add detailed catch output per species per box per fishery#32
feature(#30): Add detailed catch output per species per box per fishery#32jacobkasper wants to merge 3 commits into
Conversation
|
@jacobkasper did you see this #32 is failing when running the SETAS model? The error is: Since you added a new flag @andybeet will have to update the SETAS parameter files at some point, not sure when is the right time to do this? |
|
@hmorzaria Thanks, i didn't catch this!! @jacobkasper, like Hem said we should update the SETAS run.prm and add the flag Preferably, the SETAS example should be added to this PR to ensure all checks pass! |
|
@jacobkasper looks great! Thanks |
|
@andybeet @hmorzaria I added the prm to the example run.prm and all checks have passed |
|
Yeah, looks good to me |
closes #30
Summary
Adds a new optional output file
OutDetailedCatch.txtthat reports annual catch by species, box, and fishery. This fills a gap in the existing outputs —OutCatch.txtreports total catch per species (no fishery or box dimensions),OutCatchPerFishery.txtreports catch per fishery per species (no box dimension), and theOut.ncfile contains no catch variables. The new file provides the full species × box × fishery breakdown needed for spatial fisheries analysis such as MPA impact evaluation.New parameter
flagdetailedcatch— added to Run.prm (read via XML pipeline)0= off (default), no file created1= on,OutDetailedCatch.txtis written annuallyOutput file format
isFished == TRUE)X_CN * mg_2_tonne)CumCatchis resetFiles changed
Usage
Add to Run.prm:
Validation
Compared
OutDetailedCatch.txt(summed across all boxes and fisheries) againstOutCatch.txtfor FCD. The ratio is consistently ~0.9985 across all years. The small ~0.15% discrepancy is due toOutCatch.txtusing a separately accumulatedTotCumCatchvariable whileOutDetailedCatch.txtsumsCumCatch[sp][nf][box][layer]directly. Minor floating-point accumulation differences across thousands of timesteps account for the gap.Notes
isFished = 1in the groups CSV are includedCumCatchis reset