-
Notifications
You must be signed in to change notification settings - Fork 300
Topology tolerance [AVD-1723] #4099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
trexfeathers
merged 6 commits into
SciTools:mesh-data-model
from
pp-mo:toplogy_tolerant
Apr 21, 2021
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
622ba31
Deduce correct topology-dimension from connectivities, and be toleran…
pp-mo e463aed
Added simple integration tests.
pp-mo 6e329d2
Review changes.
pp-mo 70d643b
Review changes: use 'logging' module in place of 'warnings'.
pp-mo 9685f92
Replace deprecated assertion method; check logged message levels.
pp-mo 974dbae
Simplify logging tests; tidy synthetic file creation.
pp-mo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
lib/iris/tests/stock/file_headers/minimal_bad_topology_dim.cdl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| // Tolerant loading test example : the mesh has the wrong 'topology_dimension' | ||
| // NOTE: *not* truly minimal, as we cannot (yet) handle data with no face coords. | ||
| netcdf ${DATASET_NAME} { | ||
| dimensions: | ||
| NODES = ${NUM_NODES} ; | ||
| FACES = ${NUM_FACES} ; | ||
| FACE_CORNERS = 4 ; | ||
| variables: | ||
| int mesh_var ; | ||
| mesh_var:cf_role = "mesh_topology" ; | ||
| ${TOPOLOGY_DIM_DEFINITION} | ||
| mesh_var:node_coordinates = "mesh_node_x mesh_node_y" ; | ||
| mesh_var:face_node_connectivity = "mesh_face_nodes" ; | ||
| mesh_var:face_coordinates = "mesh_face_x mesh_face_y" ; | ||
| float mesh_node_x(NODES) ; | ||
| mesh_node_x:standard_name = "longitude" ; | ||
| mesh_node_x:long_name = "Longitude of mesh nodes." ; | ||
| mesh_node_x:units = "degrees_east" ; | ||
| float mesh_node_y(NODES) ; | ||
| mesh_node_y:standard_name = "latitude" ; | ||
| mesh_node_y:long_name = "Latitude of mesh nodes." ; | ||
| mesh_node_y:units = "degrees_north" ; | ||
| float mesh_face_x(FACES) ; | ||
| mesh_face_x:standard_name = "longitude" ; | ||
| mesh_face_x:long_name = "Longitude of mesh nodes." ; | ||
| mesh_face_x:units = "degrees_east" ; | ||
| float mesh_face_y(FACES) ; | ||
| mesh_face_y:standard_name = "latitude" ; | ||
| mesh_face_y:long_name = "Latitude of mesh nodes." ; | ||
| mesh_face_y:units = "degrees_north" ; | ||
| int mesh_face_nodes(FACES, FACE_CORNERS) ; | ||
| mesh_face_nodes:cf_role = "face_node_connectivity" ; | ||
| mesh_face_nodes:long_name = "Maps every face to its corner nodes." ; | ||
| mesh_face_nodes:start_index = 0 ; | ||
| float data_var(FACES) ; | ||
| data_var:mesh = "mesh_var" ; | ||
| data_var:location = "face" ; | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.