migurski/DEM-Tools — pull request #3 by brookstalley (2012-04-16 01:42:19+00:00)
Title: Fix: close geotiff files before returning their contents

I was having a terrible time with Hillup creating corrupt tiff files -- turns out, at least on RHEL 6, save_slope_aspect was returning bad data. You'd think ds_both.FlushCache would do it, but I confirmed that the on-disk file is corrupt at that point, but correct once the ds_both object is destroyed (thereby calling GDALClose).