uxarray icon indicating copy to clipboard operation
uxarray copied to clipboard

Inconsistent Normalization of Cartesian Coordinates in `node_x`, `node_y`, and `node_z`

Open hongyuchen1030 opened this issue 6 months ago • 15 comments

Version

v2024.06

How did you install UXarray?

Conda

What happened?

Our project performs geometric operations on unstructured grids on a unit sphere, which means all points on the sphere should be normalized. The normalized Cartesian coordinates are stored in the node_x, node_y, and node_z variables.

However, while in most cases the node_x, node_y, and node_z variables are normalized as they should be, when reading in the MPAS data, these variables are not normalized. This inconsistency leads to breakdowns in subsequent operations.

What did you expect to happen?

the node_x, node_y, and node_z variables to be consistently normalized across all datasets, including the MPAS data.

It is crucial to emphasize and document that node_x, node_y, and node_zmust always represent normalized points on the sphere. Ensuring these variables are normalized as required is essential for the robustness and reliability of our project.

Can you provide a MCVE to repoduce the bug?

No response

hongyuchen1030 avatar Jul 31 '24 22:07 hongyuchen1030