feature(#30): Add detailed catch output per species per box per fishery#32
Open
jacobkasper wants to merge 2 commits into
Open
feature(#30): Add detailed catch output per species per box per fishery#32jacobkasper wants to merge 2 commits into
jacobkasper wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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