magpie.coords.ortho2cart

magpie.coords.ortho2cart(x, y, r=1.0, fill_value=np.nan)

Orthographic projection to cartesian coordinates.

Parameters
xarray

X value in the orthographic projection.

yarray

Y value in the orthographic projection.

rfloat

Radius of the sphere.

fill_valuefloat

Fill values outside the sphere with this value.

Returns
zarray

Returns the z value of the cartesian coordinates.