sphere2cartesian: Convert rotated spherical coordinates back to Cartesian...

View source: R/sphere2cartesian.R

sphere2cartesianR Documentation

Convert rotated spherical coordinates back to Cartesian coordinates

Description

Convert rotated spherical coordinates back to Cartesian coordinates

Usage

sphere2cartesian(X, Y, Z, lonR, latR, verbose = FALSE)

Arguments

X

A numeric vector of X coordinates, where X is the radial distance

Y

A numeric vector of Y coordinates, where Y is the polar angle

Z

A numeric vector of Z coordinates, where Z is the azimuthal angle

lonR

Center longitude of viewing angle

latR

Center latitude of viewing angle

verbose

a boolean; if TRUE print information about progress

Value

A list(Lon=longitudes, Lat=latitudes)


metno/esd documentation built on Feb. 25, 2025, 6:44 p.m.