@@ -30,7 +30,6 @@ def _parse_nameunits(nameunits: str) -> tuple[str, str | None]:
3030 In GMT grid header, the x_units/y_units/z_units are strings in the form of
3131 ``long_name [units]``, in which both ``long_name`` and ``units`` and standard
3232 netCDF attributes defined by CF conventions. The ``[units]`` part is optional.
33- See function ``gmtnc_get_units`` in ``gmt_nc.c`` for details.
3433
3534 This function parses the x_units/y_units/z_units string and get the ``long_name``
3635 and ``units`` attributes.
@@ -88,8 +87,7 @@ class _GMT_GRID(ctp.Structure): # noqa: N801
8887 ... print(header.title)
8988 ... print(header.command)
9089 ... 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)
9391 ... print(header.type, header.n_bands, header.mx, header.my)
9492 ... print(header.pad[:])
9593 ... print(header.mem_layout, header.nan_value, header.xy_off)
@@ -111,7 +109,7 @@ class _GMT_GRID(ctp.Structure): # noqa: N801
111109 b'Produced by grdcut'
112110 b'grdcut @earth_relief_01d_p -R-55/-47/-24/-10 -Gstatic_earth_relief.nc'
113111 b'Reduced by Gaussian Cartesian filtering (111.2 km fullwidth) from ...'
114- 112 216 0 0
112+ 112 216 0
115113 18 1 12 18
116114 [2, 2, 2, 2]
117115 b'' nan 0.5
@@ -135,7 +133,7 @@ class _GMT_GRID(ctp.Structure): # noqa: N801
135133
136134 class _GMT_GRID_HEADER (ctp .Structure ): # noqa: N801
137135 """
138- GMT grid_header structure for holding a grid header.
136+ GMT grid header structure for holding a grid header.
139137 """
140138
141139 _fields_ : ClassVar = [
0 commit comments