diff --git a/test/meshfiles/ugrid/quad-hexagon/grid.nc b/test/meshfiles/ugrid/quad-hexagon/grid.nc index 33e21250d..6c0327dbb 100644 Binary files a/test/meshfiles/ugrid/quad-hexagon/grid.nc and b/test/meshfiles/ugrid/quad-hexagon/grid.nc differ diff --git a/uxarray/conventions/ugrid.py b/uxarray/conventions/ugrid.py index 0353dbe49..707c1dd79 100644 --- a/uxarray/conventions/ugrid.py +++ b/uxarray/conventions/ugrid.py @@ -1,4 +1,4 @@ -from uxarray.constants import INT_FILL_VALUE, INT_DTYPE +from uxarray.constants import INT_FILL_VALUE CONVENTIONS_ATTR = "UGRID-v1.0" @@ -144,7 +144,6 @@ "long name": "Maps every face to its corner nodes.", "start_index": 0, "_FillValue": INT_FILL_VALUE, - "dtype": INT_DTYPE, } FACE_NODE_CONNECTIVITY_DIMS = ["n_face", "n_max_face_nodes"] @@ -153,7 +152,6 @@ "long name": "Maps every face to its edges.", "start_index": 0, "_FillValue": INT_FILL_VALUE, - "dtype": INT_DTYPE, } FACE_EDGE_CONNECTIVITY_DIMS = [ "n_face", @@ -165,7 +163,6 @@ "long name": "Faces that neighbor each face.", "start_index": 0, "_FillValue": INT_FILL_VALUE, - "dtype": INT_DTYPE, } FACE_FACE_CONNECTIVITY_DIMS = [ "n_face", @@ -177,7 +174,6 @@ "cf_role": "edge_node_connectivity", "long name": "Maps every edge to the two nodes that it connects.", "start_index": 0, - "dtype": INT_DTYPE, } EDGE_NODE_CONNECTIVITY_DIMS = ["n_edge", "two"] @@ -198,7 +194,6 @@ "long name": "Faces that neighbor each edge", "start_index": 0, "_FillValue": INT_FILL_VALUE, - "dtype": INT_DTYPE, } EDGE_FACE_CONNECTIVITY_DIMS = ["n_edge", "two"] @@ -208,7 +203,6 @@ "long name": "Edges that neighbor each node", "start_index": 0, "_FillValue": INT_FILL_VALUE, - "dtype": INT_DTYPE, } NODE_EDGE_CONNECTIVITY_DIMS = ["n_node", "n_max_node_edges"] @@ -218,7 +212,6 @@ "long name": "Faces that neighbor each node", "start_index": 0, "_FillValue": INT_FILL_VALUE, - "dtype": INT_DTYPE, } NODE_FACE_CONNECTIVITY_DIMS = ["n_node", "n_max_node_faces"] @@ -227,7 +220,6 @@ N_NODES_PER_FACE_ATTRS = { "cf_role": "n_nodes_per_face", "long name": "Number of nodes per face", - "dtype": INT_DTYPE, } N_NODES_PER_FACE_DIMS = ["n_face"] diff --git a/uxarray/grid/coordinates.py b/uxarray/grid/coordinates.py index ba0b27e57..ceb8acebc 100644 --- a/uxarray/grid/coordinates.py +++ b/uxarray/grid/coordinates.py @@ -330,4 +330,4 @@ def _set_desired_longitude_range(ds): for lon_name in ["node_lon", "edge_lon", "face_lon"]: if lon_name in ds: if ds[lon_name].max() > 180: - ds[lon_name] = (ds[lon_name] + 180) % 360 - 180 + ds[lon_name].data = (ds[lon_name].data + 180) % 360 - 180