Learn R Programming

TCHazaRds (version 1.1.2)

TCHazaRdsWindTimeSereies: Compute the Wind Hazards Associated Over the Period of a TCs Event at one Given Location

Description

Compute the Wind Hazards Associated Over the Period of a TCs Event at one Given Location

Usage

TCHazaRdsWindTimeSereies(
  outdate = NULL,
  GEO_land = NULL,
  TC,
  paramsTable,
  returnWaves = FALSE
)

Value

list() containing a timeseries

abbreviated attributedescriptionunits
datePOSIX data time object of TC or outdate if providedas.POSIX
PAtmospheric pressurehPa
UwMeridional wind speedm/s
VwZonal wind speedm/s
SwWind speedm/s
Rdistance to TC centrem
rMaxradius of maximum windkm
vMaxTC maximum velocitym/s
bTC wind profile exponent-
CPTC central PressurehPa
dPdtchange in TC CP per hourhPa/hr
vFmvelocity of TC forward motionm/s
Hs0Deep water significant wave heightm
Tp0Deep water Peak wave periods
Dp0The peak direction in which wave are headingdeg clockwise from true north.

Arguments

outdate

array of POSITx date times to linearly interpolate TC track,optional.

GEO_land

dataframe hazard geometry generated with land_geometry

TC

SpatVector of Tropical cyclone track parameters

paramsTable

Global parameters to compute TC Hazards.

returnWaves

Return ocean wave parameters (default = FALSE)

Details

The function calculates wind speed and direction time series from a tropical cyclone track using various wind profile models.

Examples

Run this code
GEO_land = data.frame(dem=0,lons = 147,lats=-18,f=-4e-4,inlandD = 0)

require(terra)
TCi <- vect(system.file("extdata/YASI/YASI.shp", package="TCHazaRds"))
TCi$PRES <- TCi$BOM_PRES

paramsTable = read.csv(system.file("extdata/tuningParams/defult_params.csv",package = "TCHazaRds"))
HAZts = TCHazaRdsWindTimeSereies(GEO_land=GEO_land,TC=TCi,paramsTable = paramsTable)
main =  paste(TCi$NAME[1],TCi$SEASON[1],"at",GEO_land$lons,GEO_land$lats)
#with(HAZts,plot(date,Sw,format = "%b-%d %H",type="l",main = main,ylab = "Wind speed [m/s]"))

Run the code above in your browser using DataLab