A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

rrricanes

An R library that extracts information from Atlantic and east Pacific hurricanes and tropical storms.
https://github.com/ropensci/rrricanes

Category: Climate Change
Sub Category: Natural Hazard and Storm

Keywords

hurricane peer-reviewed r r-package rstats weather

Keywords from Contributors

cycling routes genome ropensci unconf unconf17 occurrence geocoding

Last synced: about 17 hours ago
JSON representation

Repository metadata

Web scraper for Atlantic and east Pacific hurricanes and tropical storms

README.Rmd

          ---
output: github_document
---

[![minimal R version](https://img.shields.io/badge/R%3E%3D-3.5.0-6666ff.svg)](https://cran.r-project.org/) 
[![GitHub (pre-)release](https://img.shields.io/github/release/ropensci/rrricanes/all.svg)](https://github.com/ropensci/rrricanes/tags)
[![](https://badges.ropensci.org/118_status.svg)](https://github.com/ropensci/onboarding/issues/118)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rrricanes)](https://cran.r-project.org/package=rrricanes)
[![R-CMD-check](https://github.com/ropensci/rrricanes/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/rrricanes/actions)
[![codecov](https://codecov.io/gh/ropensci/rrricanes/branch/master/graph/badge.svg)](https://codecov.io/gh/ropensci/rrricanes) 

```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)
```

# rrricanes 

`rrricanes` is a R library that extracts information from [available archives](http://www.nhc.noaa.gov/archive/1998/1998archive.shtml) on past and current tropical cyclones. Currently, archives date back to 1998. 

Data can be obtained for cyclones in the north Atlantic (considered the Atlantic Basin) and north-eastern Pacific (the East Pacific Basin from 140°W and eastward. 

Central Pacific data (140°W to 180°W) is included if issued by the [National Hurricane Center](http://www.nhc.noaa.gov/) (generally they're issued by the [Central Pacific Hurricane Center](http://www.prh.noaa.gov/cphc/)).

This library parses the text advisories of all tropical cyclones since 1998. Over the years the formats of the text products have changed and many are loosely formatted. 

## Current Status of rrricanes

rrcanes is not currently on CRAN. A group of people 
(who welcome others to join us) are working 
on updating the package and get it back into shape
for submission to CRAN.  Because it has been
a while we are taking the opportunity to do 
some updating and refactoring.  Specifically
we are working to get the package working with
the recent [https://r-spatial.org/](changes in
the R spatial ecosystem). When possible we 
are also shifting to more modern APIs for 
accessing the data when they are available.

Please report any issues and share ideas in the 
issue tracker and code with pull requests.


## Package background

This package was created by Time Trice with the goal of consolidating messy
text data into well-organized formats that can easily be saved
to CSV, SQL and other data formats. 

## Advisory Products

Generally speaking, there are five products available for tropical cyclones issued at 03:00, 09:00, 15:00 and 21:00 UTC;  

1. Storm Discussion - These are technical discussions centered on the current structure of the cyclone, satellite presentation, computer forecast model tendencies and more. 

2. Forecast/Adivsory - This data-rich product lists the current location of the cyclone, its wind structure, forecast and forecast wind structure.

3. Public Advisory - These are general text statements issued for the public-at-large. Information in these products is a summary of the Forecast/Advisory product along with any watches and warnings issued, changed, or cancelled. Public Advisory products are the only regularly-scheduled product that may be issued intermittently (every three hours and, occasionally, every two hours) when watches and warnings are in effect.

4. Wind Speed Probabilities - These products list the probability of a minimum sustained wind speed expected in a given forecast window. This product replaces the Strike Probabilities product beginning in 2006 (see below).

5. Updates - Tropical Cyclone Updates may be issued at any time if a storm is an immediate threat to land or if the cyclone undergoes a significant change of strength or structure. The information in this product is general.

__Discontinued Products__

These products are included in the package though they have been discontinued at some point:

1. Strike Probabilities - List the probability of a tropical cyclone passing within 65 nautical miles of a location within a forecast window. Replaced in 2006 by the Wind Speed Probabilities product.

2. Position Estimates - Typically issued as a storm is threatening land but generally rare (see Hurricane Ike 2008, Key AL092008). It is generally just an update of the current location of the cyclone. After the 2011 hurricane season, this product was discontinued; Updates are now issued in their place.

**Note that the discontinued products are historical only
and eventually we will create 

## Getting Started

Please view the vignette 'Getting Started':

```r
vignette("getting_started", package = "rrricanes")
```

[Online documentation](https://timtrice.github.io/rrricanes/) is also available.

### Prerequisites

`rrricanes` requires an active internet connection as data is extracted from online sources.

Linux users must also have the `libgdal-dev`, `libproj-dev` and `libxml2-dev` packages installed.


To add `rrricanesdata`, a [package of post-scraped datasets](https://github.com/ropensci/rrricanesdata), 

```r
install.packages("rrricanesdata", 
                 repos = "https://timtrice.github.io/drat/", 
                 type = "source")
```
However this package is not currently maintained.

To use high resolution tracking maps you will need to install the `rnaturalearthhires` package. 

```r
install.packages("rnaturalearthhires",
                 repos = "http://packages.ropensci.org",
                 type = "source")
```

### Installing

`rrricanes` is currently only available in GitHub. It can be installed using the `devtools` package:

```r
devtools::install_github("ropensci/rrricanes", build_vignettes = TRUE)
```

## Built With

* [R 4.1](https://www.r-project.org/) - The R Project for Statistical Computing

New minimum versions for a number of dependencies  have been establised. 
This provides opportunity to build on newer features of the packages 

## Contributing

Please read [CONTRIBUTING.md](https://github.com/ropensci/rrricanes/blob/master/.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/ropensci/rrricanes/tags). 

## Authors

* **Tim Trice** - *Initial work* - [timtrice](https://github.com/timtrice)

See also the list of [contributors](https://github.com/ropensci/rrricanes/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

* [Molyneux, James](https://github.com/jimmylovestea)
* [Padgham, Mark](https://github.com/mpadge)
* [Robinson, Emily](https://github.com/robinsones)
* [Rudis, Bob](https://github.com/hrbrmstr)
* [Salmon, Maëlle](https://github.com/maelle)
* [Stachelek, Joseph](https://github.com/jsta)

## Known Data Quality Issues

1. Hurricane Juan (AL152003), Adv 15; no status leads to improper `Status` and `Name` values in some datasets. ([#82](https://github.com/ropensci/rrricanes/issues/82))

        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 1,369
Total Committers: 13
Avg Commits per committer: 105.308
Development Distribution Score (DDS): 0.12

Commits in past year: 1
Committers in past year: 1
Avg Commits per committer in past year: 1.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
timtrice t****e@g****m 1205
Elin Waring e****g@g****m 90
Lismarie Areche l****e@r****u 16
Trice t****e@h****m 15
Goodness O. Ajayi-Martins g****9@g****m 10
Jeroen Ooms j****s@g****m 10
Tim Trice t****e@s****m 8
Lismarie Areche l****e@R****u 5
Sophia Barrett s****t@g****m 4
Simon Aytes s****n@a****t 3
GOAM001 7****1 1
Karthik Ram k****m@g****m 1
Making GitHub Delicious i****n@w****o 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 131
Total pull requests: 79
Average time to close issues: 3 months
Average time to close pull requests: 4 days
Total issue authors: 7
Total pull request authors: 11
Average comments per issue: 1.5
Average comments per pull request: 0.33
Merged pull request: 72
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ropensci/rrricanes

Top Issue Authors

  • timtrice (100)
  • elinw (18)
  • maelle (5)
  • ElioRoca (3)
  • jeroen (2)
  • mpadge (2)
  • hrbrmstr (1)

Top Pull Request Authors

  • elinw (38)
  • lismariea (11)
  • timtrice (10)
  • GOAM001 (8)
  • SimonAytes (5)
  • zeigna (2)
  • waffle-iron (1)
  • GhostsOfHiroshima (1)
  • karthik (1)
  • jsta (1)
  • mpadge (1)

Top Issue Labels

  • High Priority (60)
  • Bugs (34)
  • Features (22)
  • Medium Priority (10)
  • Icebox (6)
  • Technical Debt (4)
  • infrasctructure (2)
  • In Progress (2)
  • Low Priority (2)
  • Backlog (1)
  • help-wanted (1)
  • tests (1)

Top Pull Request Labels

  • High Priority (2)
  • Features (2)

Dependencies

DESCRIPTION cran
  • R >= 4.1.0 depends
  • broom >= 0.5 imports
  • crul >= 0.7 imports
  • curl >= 3.3 imports
  • dplyr >= 0.8 imports
  • ggplot2 >= 3.1 imports
  • httr >= 1.4 imports
  • iotools * imports
  • lubridate >= 1.7 imports
  • purrr >= 0.3 imports
  • readr >= 1.3 imports
  • rlang >= 0.3 imports
  • rvest >= 0.3 imports
  • stringr >= 1.4 imports
  • tibble >= 2.1 imports
  • tidyr >= 0.8 imports
  • tidyselect >= 0.2 imports
  • xml2 >= 1.2 imports
  • covr * suggests
  • devtools * suggests
  • here * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • rnaturalearthdata >= 0.1 suggests
  • sf >= 1.0 suggests
  • sp * suggests
  • testthat * suggests
.github/workflows/R-CMD-check.yml actions
  • actions/cache v2 composite
  • actions/checkout v3 composite
  • actions/upload-artifact main composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
docker/devel/Dockerfile docker
  • rocker/rstudio devel build
docker/oldrelease/Dockerfile docker
  • rocker/rstudio 3.5.3 build
docker/release/Dockerfile docker
  • rocker/rstudio latest build

Score: 6.202535517187922