Skip to content

Cartesian Coordinates Improperly Labeled as Lat/Lon for Exodus Grids #360

Closed

Description

@philipc2

Overview

Cartesian Coordinates parsed from Exodus grids that are incorrectly labeled with units "degrees", meaning they are interpreted as lat/lon.

MCVE

Dataset Used: Exodus outCSne8

# Base data path
base_path = "../../test/meshfiles/exodus/outCSne8/"

# Path to Grid file
grid_path = base_path + "outCSne8.g"

uxgrid = ux.open_grid(grid_path)
uxgrid.Mesh2_node_x.units
image
uxgrid.Mesh2_node_x.values.min(), uxgrid.Mesh2_node_x.values.max()
image

Activity

  1. added
    bug
    on Jun 26, 2023
  2. self-assigned this
    on Jun 26, 2023
  3. rajeeja commented on Jun 26, 2023

    @rajeeja
    Contributor

    will fix.

  4. brianpm commented on Jun 27, 2023

    @brianpm

    I just ran into this same issue "in the wild" yesterday when I tried to use an exodus file.

  5. added a commit that references this issue on Jun 29, 2023
  6. rajeeja commented on Jun 29, 2023

    @rajeeja
    Contributor

    Is the assumption that exodus II meshes are always cartesian (defined in the basic
    cartesian coordinate system) valid?

    Anyone has example of a lat/lon coord exodus mesh file?

    I tried to look for some symbol in the netcdf loaded from xarray and didn't find anything specific. Documentation talks about frames with "S": spherical, "R": cartesian and "C": cylinderical see docs pg. 112

  7. moved this from 📝 To Do to 🏗 In progress in UXarray Developmenton Jul 3, 2023
  8. moved this from 🏗 In progress to 👀 In review in UXarray Developmenton Jul 18, 2023
  9. moved this from 👀 In review to ✅ Done in UXarray Developmenton Aug 18, 2023
  10. added this to the Exodus milestone on Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Fields

Priority

None yet

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions