R/NCEP.uv.revert.R

Defines functions NCEP.uv.revert

Documented in NCEP.uv.revert

NCEP.uv.revert <- function(spd, dir, radians=FALSE){
	if(radians == FALSE) {
		dir <- dir * (pi/180)
		}
		U <- sin(dir)*spd
		V <- cos(dir)*spd
		UV <- data.frame(U, V)
return(UV)
}

Try the RNCEP package in your browser

Any scripts or data that you put into this service are public.

RNCEP documentation built on July 1, 2020, 7:10 p.m.