uxarray.grid.coordinates.node_lonlat_rad_to_xyz

uxarray.grid.coordinates.node_lonlat_rad_to_xyz#

uxarray.grid.coordinates.node_lonlat_rad_to_xyz(node_coord)#

Helper function to Convert the node coordinate from 2D longitude/latitude to normalized 3D xyz.

Parameters:

node (float list) – 2D coordinates[longitude, latitude] in radiance

Returns:

the result array of the unit 3D coordinates [x, y, z] vector where \(x^2 + y^2 + z^2 = 1\)

Return type:

float list

Raises:

RuntimeError – The input array doesn’t have the size of 3.