We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28d624b commit 80c19f1Copy full SHA for 80c19f1
1 file changed
cf/regrid/regrid.py
@@ -1644,6 +1644,12 @@ def create_esmpy_mesh(grid, mask=None):
1644
The `esmpy.Mesh` derived from *grid*.
1645
1646
"""
1647
+ if grid.mesh_location == "point":
1648
+ raise ValueError(
1649
+ f"Can't regrid {'from' if grid.name == 'source' else 'to'} "
1650
+ f"a {grid.name} grid of UGRID point cells"
1651
+ )
1652
+
1653
if grid.coord_sys == "spherical":
1654
coord_sys = esmpy.CoordSys.SPH_DEG
1655
else:
0 commit comments