pfmc-assessments / PacFIN.Utilities

R code to manipulate data from the PacFIN database for assessments
http://pfmc-assessments.github.io/PacFIN.Utilities
Other
7 stars 1 forks source link

Best way to split data at 40 10' management line #60

Open kellijohnson-NOAA opened 3 years ago

kellijohnson-NOAA commented 3 years ago

Anyone have advice on how to split data from PacFIN at the 40 10' management line? @iantaylor-NOAA suggested those who worked on data from China rockfish might have insight? @John-R-Wallace-NOAA do you have ideas. I would think that the method here would be standard across almost all species and we could implement some code.

iantaylor-NOAA commented 3 years ago

@chantelwetzel-noaa just reminded me in a discussion about splitting the WCGOP data on this boundary that the 2017 Yellowtail Rockfish assessment was also split at 40°10', so perhaps @andi-stephens-NOAA remembers what approach was used.

Species with splits at 40°10'

andi-stephens-NOAA commented 3 years ago

I recall that we fretted about that until we realized that there were very few fish caught within a few miles of that line. It may not be true for Lingcod.

For the Lingcod Observer comps, I assigned the southern fish so:

  Catch$D_STATE[Y$AVG_LAT < 40.17] = "South"  # Cape Mendocino

--Andi

On Mon, Mar 8, 2021 at 1:29 PM Ian Taylor notifications@github.com wrote:

@chantelwetzel-noaa https://github.com/chantelwetzel-noaa just reminded me in a discussion about splitting the WCGOP data on this boundary that the 2017 Yellowtail Rockfish assessment was also split at 40°10', so perhaps @andi-stephens-NOAA https://github.com/andi-stephens-NOAA remembers what approach was used.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nwfsc-assess/PacFIN.Utilities/issues/60#issuecomment-793092724, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTUYBQ6M72VIJXNK6SADLLTCU6TRANCNFSM4Y2BEZKA .

kellijohnson-NOAA commented 3 years ago

Thanks to @melissamonk-NOAA for bringing to our attention that the ports specified by calcom that form port group complexes can be used to split the data.

Shelter Cove can act as the delineation here. For the catch data, the column is PORT_NAME; and for the bds data, the column is AGENCY_PORT_CODE, which provides cryptic groups that can be linked to actual port names here. For the latter, we care about low 200 level ports.

image

Next steps include the following: