Skip to content

Commit

Permalink
Fix inverted land mask
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed Feb 26, 2024
1 parent 7281edf commit 350327f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmtsar/pygmtsar/GMT.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def download_landmask(self, geometry, filename=None, product='1s', resolution='f
def grdlandmask(bounds, product, resolution, filename):
if os.path.exists(filename):
os.remove(filename)
argv = ['gmt', 'grdlandmask', f'-R{bounds[0]}/{bounds[2]}/{bounds[1]}/{bounds[3]}', f'-I{product}', f'-D{resolution}', '-N1/NaN', f'-G{filename}']
argv = ['gmt', 'grdlandmask', f'-R{bounds[0]}/{bounds[2]}/{bounds[1]}/{bounds[3]}', f'-I{product}', f'-D{resolution}', '-NNaN/1', f'-G{filename}']
#print ('grdlandmask argv:', ' '.join(argv))
p = subprocess.Popen(argv, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf8')
stdout_data, stderr_data = p.communicate()
Expand Down

0 comments on commit 350327f

Please sign in to comment.