Skip to content

Commit

Permalink
Remove registration for DEM downloading because it does not work in G…
Browse files Browse the repository at this point in the history
…MT module
  • Loading branch information
AlexeyPechnikov committed Feb 28, 2024
1 parent a198419 commit fcdf8d2
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 @@ -169,7 +169,7 @@ def download_dem(self, geometry, filename=None, product='1s', skip_exist=True):
def load_earth_relief(bounds, product, filename):
if os.path.exists(filename):
os.remove(filename)
argv = ['gmt', 'grdcut', f'@earth_relief_{product}', f'-R{bounds[0]}/{bounds[2]}/{bounds[1]}/{bounds[3]}', '-rp', f'-G{filename}']
argv = ['gmt', 'grdcut', f'@earth_relief_{product}', f'-R{bounds[0]}/{bounds[2]}/{bounds[1]}/{bounds[3]}', f'-G{filename}']
#print ('gmt grdcut 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 fcdf8d2

Please sign in to comment.