[gdal-dev] gdal.Warp error No space left on device.

Deschamps, Benjamin (EC) benjamin.deschamps at canada.ca
Fri Dec 14 10:48:32 PST 2018


Hi,

I've been able to reproduce the error reported here: https://trac.osgeo.org/gdal/ticket/3500 (closed/invalid).

The error is:

Traceback (most recent call last):
  File "C:\Users\deschampsb\Desktop\gdalwarp_HFA_bug\gdalwarp_HFA_bug.py", line 22, in <module>
    gdal.Warp("warp.hfa", "test.tif", options=warp_options)
  File "C:\Python36\lib\site-packages\osgeo\gdal.py", line 584, in Warp
    return wrapper_GDALWarpDestName(destNameOrDestDS, srcDSTab, opts, callback, callback_data)
  File "C:\Python36\lib\site-packages\osgeo\gdal.py", line 2928, in wrapper_GDALWarpDestName
    return _gdal.wrapper_GDALWarpDestName(*args)
RuntimeError: Failed to extend warp.ige to full size (5.73878e+09 bytes),
likely out of disk space.
No space left on device

This is using Python 3.6.1 64-bits with GDAL 2.1.3 bindings, on Windows Server 2008.

It turns out that the error is not related to the HFA output format, or to a lack of space in the destination location, but in my case to a lack of free space on C:. I had hundreds of GB of free disk in the output location, but I noticed that in my case, there was no (40K) disk space left on the system C: drive. Freeing up space on the C solved the issue. Are there any temp files being created there?

Thanks,

Benjamin Deschamps

Physical Sciences Specialist
Canadian Ice Service, Meteorological Service of Canada
Environment and Climate Change Canada / Government of Canada
Benjamin.Deschamps at canada.ca<mailto:Benjamin.Deschamps at canada.ca> / Tel: 613-943-4293

Spécialiste des sciences physiques
Service Canadien des Glaces, Service Météorologique du Canada,
Environnement et Changement climatique Canada / Gouvernement du Canada
Benjamin.Deschamps at canada.ca<mailto:Benjamin.Deschamps at canada.ca> / Tél. : 613-943-4293

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181214/d5156228/attachment.html>


More information about the gdal-dev mailing list