bopen / elevation

Python script to download global terrain digital elevation models, SRTM 30m DEM and SRTM 90m DEM.
http://elevation.bopen.eu
Apache License 2.0
290 stars 74 forks source link

python API does not respect output file path. #57

Open danielebaisero opened 1 year ago

danielebaisero commented 1 year ago

In python 3:

import elevation
elevation.clip(bounds=(12.35, 41.8, 12.65, 42), output='Rome-DEM.tif')

Does not write the file in the working directory, but in /home/user/.cache/elevation/SRTM1/Rome-DEM.tif

Current fix is to use an explicit output path. E.g. output='/home/user/Rome-DEM.tif'