oggm
oggm copied to clipboard
keep the tmpdir clean(er)
DEMs get often downloaded as tar files and extracted to the tmpdir. If I understand the LRU file handler correctly it only takes into account .tif file which are directly in the tmpdir. So files in subfolders and files with other endings which are unpacked together with the actual DEM files are just accumulating and rotting...
Mine is at 35GB at the moment. Not a big deal nowadays but still...
- [ ] only extract directly to the tmpdir
- [ ] delete unnecessary files after extracting
- [ ] even better: Only extract necessary files, but this needs some changes in the tar_functions as well
Still a WIP! Just upping this as marginally important.
Also there is a new file_extractor
tool which might be helpful