We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1d79d2 commit 70c70c3Copy full SHA for 70c70c3
pygmt/datatypes/image.py
@@ -70,7 +70,7 @@ class _GMT_IMAGE(ctp.Structure): # noqa: N801
70
>>> data.shape
71
(180, 360, 3)
72
>>> data.min(), data.max()
73
- (10, 255)
+ (np.uint8(10), np.uint8(255))
74
"""
75
76
_fields_: ClassVar = [
@@ -139,13 +139,14 @@ def to_xarray(self) -> xr.DataArray:
139
...,
140
[177, 179, 179, ..., 178, 177, 177],
141
[185, 187, 187, ..., 187, 186, 185],
142
- [189, 191, 191, ..., 191, 191, 189]]], dtype=uint8)
+ [189, 191, 191, ..., 191, 191, 189]]],
143
+ shape=(3, 180, 360), dtype=uint8)
144
Coordinates:
145
* y (y) float64... 89.5 88.5 87.5 86.5 ... -86.5 -87.5 -88.5 -89.5
146
* x (x) float64... -179.5 -178.5 -177.5 -176.5 ... 177.5 178.5 179.5
147
* band (band) uint8... 1 2 3
148
Attributes:
- long_name: z
149
+ long_name: z
150
151
>>> da.coords["x"] # doctest: +NORMALIZE_WHITESPACE, +ELLIPSIS
152
<xarray.DataArray 'x' (x: 360)>...
0 commit comments