Lookup breeding, non-breeding, or migration season timesteps
Source:R/lookup_timestep_sequence.R
lookup_season_timesteps.Rd
Retrieve the timesteps associated with a season for the species modeled by
a BirdFlow object, possibly with a buffer (in timesteps) added on. Seasons
dates are from ebirdst::ebirdst_runs and are directly accessible
with species_info()
.
Arguments
- x
a BirdFlow object
- season
one of the seasons returned by
species_info()
, a season alias, or or"all"
for all timesteps in the model- season_buffer
the number of extra timesteps to add to the beginning and end of the season.
Value
a series of integers indicating which timesteps correspond with the (possibly buffered) season.
Season names and aliases
season
can be 'all'
, one of the the four seasons, or an
alias listed below.
season | aliases |
prebreeding_migration | pre , prebreeding , spring |
breeding | breed , summer |
postbreeding_migration | post , postbreeding , fall |
nonbreeding | non , winter |
Examples
bf <- BirdFlowModels::rewbla
lookup_season_timesteps(bf, "breeding", season_buffer = 0)
#> [1] 18 19 20 21 22 23 24 25 26 27 28 29 30 31