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

the elevation.clean() command cannot remove spools #21

Closed Pielewuiter closed 8 years ago

Pielewuiter commented 8 years ago

Hi, I'm using rPython to run the script from within R (on Ubuntu 14.04). That seems to work fine, but for some reason, the elevation.clean() procedure throws an error (breaking my iteration in R). I get:

make: Entering directory `/home/user/.cache/elevation/SRTM1'
find cache -size 0 -name "*.tif" -delete
rm -f spool/*
rm: cannot remove ‘spool/N41’: Is a directory
make: *** [clean] Error 1
make: Leaving directory `/home/user/.cache/elevation/SRTM1'

I do not know whether this problem is related to the script or to my system setup, though.. Any thoughts?

alexamici commented 8 years ago

@Pielewuiter indeed this looks like a genuine bug. I had to do a change in the structure of the spool and forgot to test the clean command. Thanks.

alexamici commented 8 years ago

@Pielewuiter can you test if latest master fixes the problem for you?

$ pip install https://github.com/bopen/elevation/archive/master.zip

Thanks.

Pielewuiter commented 8 years ago

@alexamici yep, it's running smooth for me now. Thanks for your quick response!