@@ -30,7 +30,6 @@ def _parse_nameunits(nameunits: str) -> tuple[str, str | None]:
30
30
In GMT grid header, the x_units/y_units/z_units are strings in the form of
31
31
``long_name [units]``, in which both ``long_name`` and ``units`` and standard
32
32
netCDF attributes defined by CF conventions. The ``[units]`` part is optional.
33
- See function ``gmtnc_get_units`` in ``gmt_nc.c`` for details.
34
33
35
34
This function parses the x_units/y_units/z_units string and get the ``long_name``
36
35
and ``units`` attributes.
@@ -88,8 +87,7 @@ class _GMT_GRID(ctp.Structure): # noqa: N801
88
87
... print(header.title)
89
88
... print(header.command)
90
89
... print(header.remark)
91
- ... # header.bits should be 32, but the output gives 0.
92
- ... print(header.nm, header.size, header.bits, header.complex_mode)
90
+ ... print(header.nm, header.size, header.complex_mode)
93
91
... print(header.type, header.n_bands, header.mx, header.my)
94
92
... print(header.pad[:])
95
93
... print(header.mem_layout, header.nan_value, header.xy_off)
@@ -111,7 +109,7 @@ class _GMT_GRID(ctp.Structure): # noqa: N801
111
109
b'Produced by grdcut'
112
110
b'grdcut @earth_relief_01d_p -R-55/-47/-24/-10 -Gstatic_earth_relief.nc'
113
111
b'Reduced by Gaussian Cartesian filtering (111.2 km fullwidth) from ...'
114
- 112 216 0 0
112
+ 112 216 0
115
113
18 1 12 18
116
114
[2, 2, 2, 2]
117
115
b'' nan 0.5
@@ -135,7 +133,7 @@ class _GMT_GRID(ctp.Structure): # noqa: N801
135
133
136
134
class _GMT_GRID_HEADER (ctp .Structure ): # noqa: N801
137
135
"""
138
- GMT grid_header structure for holding a grid header.
136
+ GMT grid header structure for holding a grid header.
139
137
"""
140
138
141
139
_fields_ : ClassVar = [
0 commit comments