Learn R Programming

stormwindmodel (version 0.1.4)

check_over_land: Determine if storm is over land or water

Description

Determines if the storm is over land or water at its observed location. This function finds the closest grid point in the landmask dataframe, then checks if that grid point is over land or water.

Usage

check_over_land(tclat, tclon)

Arguments

tclat

Numeric vector of the absolute value of latitude, in degrees.

tclon

Numeric vector of the absolute value of latitude, in degrees.

Value

A logical vector of whether the storm is over land (TRUE) or water (FALSE)