xy_2_rt Subroutine

public subroutine xy_2_rt(x, y, xc, yc, r, t)

Convert the Cartesian (x-y) grid to the polar (r-t) grid (from STPK)

Arguments

Type IntentOptional Attributes Name
double precision, intent(in) :: x

X-coordinate [m]

double precision, intent(in) :: y

Y-coordinate [m]

double precision, intent(in) :: xc

X-coordinate of the center on the polar grid

double precision, intent(in) :: yc

Y-coordinate of the center on the polar grid

double precision, intent(out) :: r

Radius [m]

double precision, intent(out) :: t

Angle [rad]