@@ -70,7 +70,7 @@ class _GMT_IMAGE(ctp.Structure): # noqa: N801
70
70
>>> data.shape
71
71
(180, 360, 3)
72
72
>>> data.min(), data.max()
73
- (10, 255)
73
+ (np.uint8(10), np.uint8( 255) )
74
74
"""
75
75
76
76
_fields_ : ClassVar = [
@@ -139,17 +139,18 @@ def to_xarray(self) -> xr.DataArray:
139
139
...,
140
140
[177, 179, 179, ..., 178, 177, 177],
141
141
[185, 187, 187, ..., 187, 186, 185],
142
- [189, 191, 191, ..., 191, 191, 189]]], dtype=uint8)
142
+ [189, 191, 191, ..., 191, 191, 189]]],
143
+ shape=(3, 180, 360), dtype=uint8)
143
144
Coordinates:
144
145
* y (y) float64... 89.5 88.5 87.5 86.5 ... -86.5 -87.5 -88.5 -89.5
145
146
* x (x) float64... -179.5 -178.5 -177.5 -176.5 ... 177.5 178.5 179.5
146
147
* band (band) uint8... 1 2 3
147
148
Attributes:
148
- long_name: z
149
+ long_name: z
149
150
150
151
>>> da.coords["x"] # doctest: +NORMALIZE_WHITESPACE, +ELLIPSIS
151
152
<xarray.DataArray 'x' (x: 360)>...
152
- array([-179.5, -178.5, -177.5, ..., 177.5, 178.5, 179.5])
153
+ array([-179.5, -178.5, -177.5, ..., 177.5, 178.5, 179.5], shape=(360,) )
153
154
Coordinates:
154
155
* x (x) float64... -179.5 -178.5 -177.5 -176.5 ... 177.5 178.5 179.5
155
156
Attributes:
0 commit comments