@@ -18,7 +18,7 @@ class _GMT_IMAGE(ctp.Structure): # noqa: N801
18
18
>>> from pygmt.clib import Session
19
19
>>> with Session() as lib:
20
20
... with lib.virtualfile_out(kind="image") as voutimg:
21
- ... lib.call_module("read", ["@earth_day_01d ", voutimg, "-Ti"])
21
+ ... lib.call_module("read", ["@earth_day_01d_p ", voutimg, "-Ti"])
22
22
... # Read the image from the virtual file
23
23
... image = lib.read_virtualfile(vfname=voutimg, kind="image").contents
24
24
... # The image header
@@ -34,7 +34,7 @@ class _GMT_IMAGE(ctp.Structure): # noqa: N801
34
34
... print(header.nm, header.size, header.complex_mode)
35
35
... print(header.type, header.n_bands, header.mx, header.my)
36
36
... print(header.pad[:])
37
- ... print(header.mem_layout, header.nan_value, header. xy_off)
37
+ ... print(header.mem_layout, header.xy_off)
38
38
... # Image-specific attributes.
39
39
... print(image.type, image.n_indexed_colors)
40
40
... # The x and y coordinates
@@ -58,7 +58,7 @@ class _GMT_IMAGE(ctp.Structure): # noqa: N801
58
58
64800 66976 0
59
59
0 3 364 184
60
60
[2, 2, 2, 2]
61
- b'BRPa' 0.0 0. 5
61
+ b'BRPa' 0.5
62
62
1 0
63
63
>>> x
64
64
[-179.5, -178.5, ..., 178.5, 179.5]
0 commit comments