Learn R Programming

StormR R package

Overview

StormR is an R package allowing to easily extract storm track data for given locations or areas of interests, to generate wind speed and direction fields, and to compute summary statistics characterising the behaviour of winds generated by tropical storms and cyclones: maximum sustained wind speed, power dissipation index, and duration of exposure to winds reaching defined speed thresholds.

Usage

Installing StormR

StormR is now available on CRAN on version 0.1.1. You can install it as follows:

install.packages("StormR")

The latest development version can be installed from GitHub as follows,

#install.packages("devtools")
devtools::install_github("umr-amap/StormR")

Loading StormR package

library(StormR)

Main functions

NameDescriptionInputsOutputs
defStormsDataset()Creates a stormsDataset object".nc" (NetCDF) filestormsDataset object
defStormsList()Extracts stormsstormsDataset objectstormsList object
plotStorms()Plots storms track datastormsList object
temporalBehaviour()Computes wind speed, direction time series, and summary statistics for a given set of point coordinatesstormsList objectlists of data.frame objects
spatialBehaviour()Computes 2D wind fields and summary statistics over a given location of intereststormsList objectSpatRaster object
plotBehaviour()Plots 2D wind fields and summary statisticsstormsList + SpatRaster objects
writeRast()Exports wind fields and summary statistics to fileSpatRaster object.tiff or .nc file

Contributing

You are welcome to contribute to the StormR package. Just fork the project and create a pull request with your changes and we will review it as soon as possible.

Reporting issues

Issues can be reported here. Simply choose the appropriate template and fill in the requested information.

Seeking help

If you need help with the StormR package, please open a new discussion on the Q&A section on github. We will do our best to answer your questions. Other users are also welcome to help you.

Funding

This work was supported by Hermon Slade Foundation, grant HSF 19105.

Copy Link

Version

Install

install.packages('StormR')

Monthly Downloads

163

Version

0.2.1

License

GPL (>= 3)

Maintainer

Thomas Arsouze

Last Published

July 24th, 2024

Functions in StormR (0.2.1)

getSeasons

Getting cyclonic seasons of the storms
plotBehaviour

Plotting spatial wind behaviour
spatialBehaviour

Computing wind behaviour and summary statistics over given areas
plotStorms

Plotting storm track data
storm-class

storm object
stormsDataset-class

stormsDataset
getScale

Getting maximum level in the wind scale
getObs

Getting observations
getStorm

Extracting a storm
temporalBehaviour

Computing wind behaviour time series and summary statistics at given point locations
stormsList-class

stormsList object
show,storm-method

Show a storm/stormsList
plotTemporal

Plotting wind behaviour time series and summary statistics at given point locations
writeRast

Exporting rasters to GeoTIFF or NetCDF files
getLOI

Getting the location of interest
getNbObs

Getting the number of observations
eezNC

EEZ of New Caledonia
getNbStorms

Getting the number of storm
getBufferSize

Getting the buffer size
getNames

Getting the names of the storms
getInObs

Getting the number of the observations
getBuffer

Getting the buffered location of interest
defStormsDataset

Creating a stormsDataset object
defStormsList

Creating a stormsList object