diff --git a/DESCRIPTION b/DESCRIPTION index 6f90528..a7f9774 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: meteogrid -Version: 3.9.3.9001 -Date: 2023-05-15 +Version: 3.9.3.9002 +Date: 2024-01-22 Title: Gridded meteorological data Description: A toolbox for working with and viewing gridded (meteorological) data. Author: Alex Deckmyn (Royal Meteorological Institute of Belgium) diff --git a/R/geowind.R b/R/geowind.R index 281ed21..18e838d 100644 --- a/R/geowind.R +++ b/R/geowind.R @@ -31,7 +31,7 @@ wind.dirspeed <- function(u, v, domain <- attr(u, "domain") if (is.null(domain)) stop("rotate_wind requires geodomain information!") ww <- geowind.init(domain) - wdir <- wdir + ww$angle + wdir <- wdir + ww$angle * 180./pi # wspeed <- wspeed * ww$mapfactor }