Replies: 2 comments 6 replies
-
@erogluorhan @rajeeja @rljacob @anissa111 @dcherian @brianpm |
Beta Was this translation helpful? Give feedback.
6 replies
-
Discussion has moved to #185 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Separation of Grid and Data Variables
Currently, we are using
ux.open_dataset
to create aux.Grid
object with a singlexr.Dataset
containing our data variables and grid information. This lack of separation between our Grid and Data variables is source of confusion. The following figure showcases how our grid and data variables are stored within theux.Grid.ds
datsetAs we can see,
mesh
,mesh_face_nodes
andmesh_depth
are listed under Data Variables, even though they are used to describe the topology of our grid.Proposal of a
ux.Dataset
ClassThe
ux.Dataset
class would be used to matchux.Grid
objects to data files that lie on the same grid. Theux.Grid
class would still be used to store our grid topology, however it will not be responsible for anything related to data variables.Implementation would be an extension of the
xr.Dataset
class, either through inheritance or composition as mentioned in Extending XarrayOpening Grid and Data Files
ux.open_grid(grid_file)
ux.Grid
objectux.open_dataset(grid, *args)
ux.Grid
object or path to file that houses unstructured grid definitionsux.Dataset
objectux.Grid.open_dataset(*args)
ux.Grid
object, eliminating the need for the user to pass through a gridUsage Example
Beta Was this translation helpful? Give feedback.
All reactions