gpt Write different (all 0) from SNAP GUI export of GeoTiff

When exporting the same .dim file as geotiff with

gpt Write -Ssource=input.dim -PformatName=GeoTIFF -Pfile=output.tif

I’m getting all zeros in all bands, compared to the correct result when
using the SNAP GUI with File->Export->GeoTiff/BigTiff.

Has anyone encountered this before?

I need to be able to execute this on a headless server with just gpt …

Will your files be larger than 4GB? Using a python script posted a few years ago:

$ 2>&1 | grep -v INFO | grep -i big
   .tif GeoTIFF-BigTIFF
   .tif GeoTIFF-BigTIFF

You could try: gpt Write -Ssource=input.dim -PformatName=GeoTIFF-BigTIFF -Pfile=output.tif.

1 Like