From bc4c7fb262feb1f09f38089615ed8bbca7dcd8a9 Mon Sep 17 00:00:00 2001 From: Azure Pipelines Date: Fri, 12 Jan 2024 11:37:24 +0000 Subject: [PATCH] [skip ci] Update stable --- stable/_modules/mpas_tools/mesh/mask.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stable/_modules/mpas_tools/mesh/mask.html b/stable/_modules/mpas_tools/mesh/mask.html index 0a5e6806..c36385eb 100644 --- a/stable/_modules/mpas_tools/mesh/mask.html +++ b/stable/_modules/mpas_tools/mesh/mask.html @@ -648,6 +648,9 @@

Source code for mpas_tools.mesh.mask

 
     dsMasks = xr.Dataset()
 
+    # make sure lon is between -180 and 180
+    lon = numpy.mod(lon + 180., 360.) - 180.
+
     Lon, Lat = numpy.meshgrid(lon, lat)
 
     shape = Lon.shape