Skip to content

Commit e3dec88

Browse files
committed
Add GMT_GRID_VARNAME_LEN80 used in GMT_CUBE
1 parent 8a2a6e4 commit e3dec88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pygmt/datatypes/header.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
import ctypes as ctp
6-
from typing import ClassVar, Any
6+
from typing import Any, ClassVar
77

88
import numpy as np
99

@@ -14,6 +14,7 @@
1414
# So we have to hardcode the values here.
1515
GMT_GRID_UNIT_LEN80 = 80
1616
GMT_GRID_TITLE_LEN80 = 80
17+
GMT_GRID_VARNAME_LEN80 = 80
1718
GMT_GRID_COMMAND_LEN320 = 320
1819
GMT_GRID_REMARK_LEN160 = 160
1920

@@ -209,7 +210,7 @@ def get_data_attrs(self) -> dict:
209210
attrs
210211
The attributes for the data variable.
211212
"""
212-
attrs : dict[str, Any] = {}
213+
attrs: dict[str, Any] = {}
213214
attrs["Conventions"] = "CF-1.7"
214215
attrs["title"] = self.title
215216
attrs["history"] = self.command

0 commit comments

Comments
 (0)