View source: R/load-parse-hurdat-data.R
fetch_best_tracks_data | R Documentation |
This function is used to download, parse, and format the current tropical storm database
(HURDAT2) from NOAA. The src
parameter may need to be updated each year as the path
to the input data is updated. Visit the NOAA website for full data description
and metadata for the HURDAT2 database
fetch_best_tracks_data(
path,
src = "https://www.nhc.noaa.gov/data/hurdat/hurdat2-1851-2020-052921.txt"
)
path |
character: the path to output downloaded data (*.csv) |
src |
character: the path to most recent HURDAT2 Best tracks data. May need updating each year. |
# Download recent data from HURDAT2 (NOAA)
library(terra)
library(hurrecon)
data("geographic")
path = 'hurdat_data.csv'
fetch_best_tracks_data(path)
# load data for trackID AL142018 (Hurricane Michael)
track = load_hurdat_track(path, trackID = 'AL142018')
# Quick one for example
output = hurrecon_run(track, land=land, max_rad_km = 100, res_m = 500, max_interp_dist_km = 50)
plot(land)
plot(output, add = TRUE)
plot(land)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.