Skip to content

Commit

Permalink
fix h_filt_yrs()
Browse files Browse the repository at this point in the history
  • Loading branch information
bbest committed Nov 8, 2024
1 parent 6734f59 commit 37022f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/global.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# https://rstudio.github.io/thematic/articles/auto.html

# devtools::install_local(here::here("../tbeptools"), force = T)
# devtools::load_all(here::here("../tbeptools"))
devtools::load_all(here::here("../tbeptools"))
librarian::shelf(
bsicons, bslib, dplyr, glue, here, htmltools, leaflet, leaflet.extras2,
lubridate, markdown, plotly, purrr, readr, scales, sf, shiny, slider,
Expand Down Expand Up @@ -255,6 +255,7 @@ h_filt_yrs <- function(st, yrs){
st_yrs <- getSeasons(st) |> as.numeric()
i_yrs <- st_yrs >= yrs[1] & st_yrs <= yrs[2]
st@data <- st@data[i_yrs]
st
}

# plotStorms(h_filt_yrs(h_st, c(2005, 2005)), dynamicPlot = T)
Expand Down
Binary file modified data/storms/IBTrACS.NA.v04r01.nc
Binary file not shown.

0 comments on commit 37022f7

Please sign in to comment.