Skip to content

Commit

Permalink
Revert back to using Cartesian mode, but be explicit this time
Browse files Browse the repository at this point in the history
Also need to add it as a valid_modifier.
  • Loading branch information
weiji14 committed Jun 22, 2020
1 parent 47b5b68 commit 522ceba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pygmt/clib/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,9 @@ def create_data(self, family, geometry, mode, **kwargs):

family_int = self._parse_constant(family, valid=FAMILIES, valid_modifiers=VIAS)
mode_int = self._parse_constant(
mode, valid=MODES, valid_modifiers=["GMT_GRID_IS_GEO"]
mode,
valid=MODES,
valid_modifiers=["GMT_GRID_IS_CARTESIAN", "GMT_GRID_IS_GEO"],
)
geometry_int = self._parse_constant(geometry, valid=GEOMETRIES)
registration_int = self._parse_constant(
Expand Down Expand Up @@ -1242,7 +1244,7 @@ def virtualfile_from_grid(self, grid, registration="GMT_GRID_PIXEL_REG"):
gmt_grid = self.create_data(
family,
geometry,
mode="GMT_CONTAINER_ONLY|GMT_GRID_IS_GEO",
mode="GMT_CONTAINER_ONLY|GMT_GRID_IS_CARTESIAN",
ranges=region,
inc=inc,
registration=registration,
Expand Down

0 comments on commit 522ceba

Please sign in to comment.