Skip to content

Commit

Permalink
update hurricanes nc
Browse files Browse the repository at this point in the history
  • Loading branch information
bbest committed Sep 25, 2024
1 parent 3f2e367 commit 7ff4d2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Binary file modified data/storms/IBTrACS.NA.v04r01.nc
Binary file not shown.
12 changes: 7 additions & 5 deletions hurricanes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ editor_options:

```{r}
librarian::shelf(
dplyr, glue, here, mapview, rworldxtra, sf,
dplyr, glue, here, mapview, purrr, rworldxtra, sf,
StormR,
# umr-amap/StormR,
tbep-tech/tbeptools, quiet = T)
Expand Down Expand Up @@ -63,11 +63,13 @@ st <- defStormsList(
verbose = 0)
d <- tibble(
storm = getNames(st),
year = getSeasons(st) |> as.numeric(),
scale = getScale(st) |> as.numeric()) # A tibble: 67 × 3
d
storm = getNames(st),
year = getSeasons(st) |> as.numeric(),
date_beg = map_chr(st@data, [email protected]$iso.time[[1]]) |>
as.Date(),
scale = getScale(st) |> as.numeric()) # A tibble: 234 × 4
# unlist(lapply(s@data, getSeasons)))
d_sum <- d |>
group_by(year) |>
summarize(
Expand Down

0 comments on commit 7ff4d2b

Please sign in to comment.