Skip to content

Commit 8c7f8f6

Browse files
committed
Add enums GridReg and GridType for grid registration and type
1 parent 05f7b09 commit 8c7f8f6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pygmt/enums.py

+18
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,21 @@ class GridFormat(IntEnum):
3737
GD = 22 #: Import through GDAL
3838
EI = 23 #: ESRI Arc/Info ASCII Grid Interchange format (ASCII integer)
3939
EF = 24 #: ESRI Arc/Info ASCII Grid Interchange format (ASCII float)
40+
41+
42+
class GridReg(IntEnum):
43+
"""
44+
Enum for the grid registration.
45+
"""
46+
47+
GRIDLINE = 0 #: Gridline registration
48+
PIXEL = 1 #: Pixel registration
49+
50+
51+
class GridType(IntEnum):
52+
"""
53+
Enum for the grid type.
54+
"""
55+
56+
CARTESIAN = 0 #: Cartesian grid
57+
GEOGRAPHIC = 1 #: Geographic grid

0 commit comments

Comments
 (0)