Skip to content

Commit

Permalink
Merge pull request #89 from umr-amap/80-bug-arguments-problem-in-comp…
Browse files Browse the repository at this point in the history
…uteasymetry

Remove non necessary argument to computeAsymmetry
  • Loading branch information
thomasarsouze authored May 13, 2024
2 parents 68fa15e + 7a25f43 commit efe8762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/spatialBehaviour.R
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ computeWindProfile <- function(data, index, method, asymmetry, x, y, crds, distE
# Adding asymmetry
if (asymmetry != "None") {
output <- computeAsymmetry(
asymmetry, wind, direction, x, y,
asymmetry, wind, x, y,
data$vxDeg[index], data$vyDeg[index],
data$stormSpeed[index],
distEye * 0.001, data$rmw[index], data$lat[index]
Expand Down Expand Up @@ -631,7 +631,7 @@ computeWindProfile <- function(data, index, method, asymmetry, x, y, crds, distE
#'
#' @return numeric vectors. Wind speed values (m/s) and wind direction (rad) at
#' each (x,y) position
computeAsymmetry <- function(asymmetry, wind, direction, x, y, vx, vy, vh, r, rmw, lat) {
computeAsymmetry <- function(asymmetry, wind, x, y, vx, vy, vh, r, rmw, lat) {
# Circular symmetrical wind
dir <- -(atan2(y, x) - pi / 2)

Expand Down

0 comments on commit efe8762

Please sign in to comment.