rrricanes to Access Tropical Cyclone Data

Author: Tim Trice

What is rrricanes

There is a tremendous amount of weather data available on the internet. Much of it is in raw format and not very easy to obtain. Hurricane data is no different. When one thinks of this data they may be inclined to think it is a bunch of map coordinates with some wind values and not much else. A deeper look will reveal structural and forecast data. An even deeper look will find millions of data points from hurricane reconnaissance, computer forecast models, ship and buoy observations, satellite and radar imagery, …

…


Read the rest at https://ropensci.org/blog/blog/2017/09/27/rrricanes

Hi Tim, i was running this piece of the code

ds <- get_storms() %>%
  filter(Name == "Hurricane Harvey") %>%
  pull(Link)
  get_storm_data(ds,products = c("discus"))

And an error message appeard: Error in as.POSIXlt.character(x, tz, …) : _
_ character string is not in a standard unambiguous format

Is excatly when run this line: get_storm_data(products = c(“discus”, “fstadv”))

Any suggestion?

Regards,

sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Spanish_Costa Rica.1252 LC_CTYPE=Spanish_Costa Rica.1252 LC_MONETARY=Spanish_Costa Rica.1252
[4] LC_NUMERIC=C LC_TIME=Spanish_Costa Rica.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] bindrcpp_0.2 rrricanes_0.2.0.7 dplyr_0.7.4 rrricanesdata_0.0.1.4

loaded via a namespace (and not attached):
[1] Rcpp_0.12.12 xml2_1.1.1 knitr_1.17 bindr_0.1 magrittr_1.5 devtools_1.13.3
[7] rvest_0.3.2 munsell_0.4.3 colorspace_1.3-2 R6_2.2.2 rlang_0.1.2 stringr_1.2.0
[13] httr_1.2.1.9000 plyr_1.8.4 tools_3.4.1 grid_3.4.1 gtable_0.2.0 git2r_0.19.0
[19] withr_2.0.0 lazyeval_0.2.0 digest_0.6.12 assertthat_0.2.0 tibble_1.3.4 ggplot2_2.2.1
[25] purrr_0.2.3 crul_0.4.0 curl_2.8.1 memoise_1.1.0 glue_1.1.1 stringi_1.1.5
[31] compiler_3.4.1 scales_0.4.1 pkgconfig_2.0.1

Thanks for the report @adlihs

any thoughts @timtrice ?

@adlihs, thank you for bringing this to my attention. I opened an issue in the rrricanes GitHub. I suspect this has to do with the locale setting and how I create a date value in the scrape_date function. I will try to fix this as I can but not likely today.

You may be able to verify this is correct by changing your locale. Can you run this piece of code, without error:

library(dplyr)
library(rrricanes)

Sys.setlocale("LC_ALL", "English")

ds <- get_storms() %>%
  filter(Name == "Hurricane Harvey") %>%
  pull(Link) %>% 
  get_storm_data(products = c("discus"))

Sys.setlocale("LC_ALL", "Spanish_Costa Rica.1252")
1 Like

Hi Tim,
I want to do the hurricane katrina, and I got the key, but it reports that “No data avaialable for requested storm/advisory” when I use the gis_advisory function

Many thanks,
Shen

@timtrice just in case you didn’t see the above question :smile_cat:

@SHENSun0610, GIS data is not available for any storms prior to 2008. Additionally, storms that developed after are not guaranteed to have the data you are seeking, either. These are experimental products offered by the NHC. They may or may not update the datasets during the offseason.

@sckott, thanks for pinging me. I’ve changed the status to watching so hopefully I won’t miss any more notifications.