Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary suitability for tagging #94

Open
2 tasks
lentinj opened this issue Dec 2, 2022 · 0 comments
Open
2 tasks

Binary suitability for tagging #94

lentinj opened this issue Dec 2, 2022 · 0 comments

Comments

@lentinj
Copy link
Collaborator

lentinj commented Dec 2, 2022

Tagging suitability will likely be a binary yes/no, aiming for a handful of length groups.A lengthgroup vector of 0/1 will probably be enough, e.g.

prey_a_tagging_suit <- ifelse(g3_stock_def(prey_a, 'midlen') < 5 & g3_stock_def(prey_a, 'midlen') >= 2, 1, 0)
 . . .
actions <- list(
    # NB: If g3_tag() is used in the stock, initialconditions/renewal
    # will only renew into tag == 0 (i.e. untagged)
    g3a_predate_tagrelease(
        # Setup as-per g3a_predate_fleet
        fleet_a,
        list(prey_a),
        suitabilities = list(prey_a = ~prey_a_tagging_suit),
        catchability_f = g3a_predate_catchability_numberfleet(~100),
  • Alter the example to show how you might insert that
  • Can we make a g3_suitability_minmax(min_len, max_len) to make the process a bit easier? Might require some g3_native magic, since there's no direct translation for ifelse().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant