@@ -54,9 +54,10 @@ def grdlandmask(
54
54
Ignored unless ``mask`` is set. Select the resolution of the coastline dataset
55
55
to use. The available resolutions from highest to lowest are: ``"full"``,
56
56
``"high"``, ``"intermediate"``, ``"low"``, and ``"crude"``, which drops by 80%
57
- between levels. Note that because the coastlines differ in details it is not
58
- guaranteed that a point will remain inside [or outside] when a different
59
- resolution is selected.
57
+ between levels. Note that because the coastlines differ in details a node in a
58
+ mask file using one resolution is not guaranteed to remain inside [or outside]
59
+ when a different resolution is selected. If ``None``, the low resolution is used
60
+ by default.
60
61
bordervalues : bool, str, float, or list
61
62
Nodes that fall exactly on a polygon boundary should be
62
63
considered to be outside the polygon [Default considers them to be
@@ -100,7 +101,9 @@ def grdlandmask(
100
101
if kwargs .get ("I" ) is None or kwargs .get ("R" ) is None :
101
102
raise GMTInvalidInput ("Both 'region' and 'spacing' must be specified." )
102
103
103
- kwargs ["D" ] = kwargs .get ("D" , _parse_coastline_resolution (resolution ))
104
+ kwargs ["D" ] = kwargs .get (
105
+ "D" , _parse_coastline_resolution (resolution , allow_auto = True )
106
+ )
104
107
105
108
with Session () as lib :
106
109
with lib .virtualfile_out (kind = "grid" , fname = outgrid ) as voutgrd :
0 commit comments