polaris.mesh.reconstruct.cartesian_to_local_geographic
- polaris.mesh.reconstruct.cartesian_to_local_geographic(ds: Dataset, u_x: DataArray, u_y: DataArray, u_z: DataArray) tuple[DataArray, DataArray, DataArray][source]
Convert a vector field from Cartesian coordinates to local geographic coordinates (zonal, meridional, radial) at the reconstruction point.
- Parameters:
ds (xr.Dataset) – mesh dataset containing geographic coordinates of reconstruction points
u_x (xr.DataArray (nCells or nVertices)) – x-component of the vector field in Cartesian coordinates
u_y (xr.DataArray (nCells or nVertices)) – y-component of the vector field in Cartesian coordinates
u_z (xr.DataArray (nCells or nVertices)) – z-component of the vector field in Cartesian coordinates
- Returns:
u_zonal (xr.DataArray (nCells or nVertices)) – Zonal component of the vec field in local geographic coordinates
u_merid (xr.DataArray (nCells or nVertices)) – Meridional component of the vec field in local geographic coordinates
u_radial (xr.DataArray (nCells or nVertices)) – Radial component of the vec field in local geographic coordinates