modverif 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: modverif
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Project-URL: Documentation, https://mullenkamp.github.io/modverif/
5
5
  Project-URL: Source, https://github.com/mullenkamp/modverif
6
6
  Author-email: mullenkamp <mullenkamp1@gmail.com>
@@ -1,4 +1,4 @@
1
1
  from modverif.evaluator import Evaluator
2
2
  from modverif.station import StationEvaluator
3
3
 
4
- __version__ = '0.2.2'
4
+ __version__ = '0.2.3'
@@ -84,6 +84,8 @@ def _read_grid_from_ds(ds):
84
84
 
85
85
  if 'latitude' in coord_names or 'latitude' in var_names:
86
86
  xlat, xlong = _read_latlon_2d(ds)
87
+ # Wrap longitudes > 180 to -180..180 for cartopy PlateCarree
88
+ xlong = np.where(xlong > 180, xlong - 360, xlong)
87
89
  return xlong, xlat, None, False
88
90
 
89
91
  if 'y' in coord_names and 'x' in coord_names and ds.crs is not None:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes