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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Separation of Grid and Data Variables
Currently, we are using
ux.open_datasetto create aux.Gridobject with a singlexr.Datasetcontaining 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.dsdatsetAs we can see,
mesh,mesh_face_nodesandmesh_depthare listed under Data Variables, even though they are used to describe the topology of our grid.Proposal of a
ux.DatasetClassThe
ux.Datasetclass would be used to matchux.Gridobjects to data files that lie on the same grid. Theux.Gridclass 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.Datasetclass, either through inheritance or composition as mentioned in Extending XarrayOpening Grid and Data Files
ux.open_grid(grid_file)ux.Gridobjectux.open_dataset(grid, *args)ux.Gridobject or path to file that houses unstructured grid definitionsux.Datasetobjectux.Grid.open_dataset(*args)ux.Gridobject, eliminating the need for the user to pass through a gridUsage Example
Beta Was this translation helpful? Give feedback.
All reactions