

I must be doing something wrong and will keep trying. I've tried interpolating for missing pixels beforehand, and manually specifying the scaling range, without luck.

This is (now) using the latest version of GDAL (which is great). My problem is that a 16-bit TIFF or GeoTIFF appears to Photoshop to be practically all black (K values from 97 to 100, roughly). I want 16 bits into and out of Photoshop. But when the original heights run continuously from zero to several thousand metres, that sort of compression/decompression isn't very nice. It's easy to squeeze a surface into an 8-bit TIFF, and in principle it's possible to expand the heights again afterwards (though I haven't got the maths right yet). What I want to do is enhance and bend surfaces in Photoshop, using tools designed for images. BIL won't work for some value types, I can't remember if the problem is with integer or with floats.ĮDIT: finally, this is useful for checking the value range of data in a file of any type: (Manifold's bottom left convention is simply not supported and wires have gotten crossed for this format). hdr file and reverse the sign of the Local Scale Y value - that will then be interpreted correctly by GDAL. Manifold will create a perfect 16-bit SDTS DEM, and gdal_translate will convert that to a perfect 16-bit GeoTIFF. What import options do you have with Photoshop? A 16-bit single band surface export from Manifold should be fine, but if none of the available formats is any good (Manifold simply doesn't do surface GeoTIFF!!!) I would use gdal_translate from FWTools to convert the file to GeoTIFF.ĪFAIK, if you use SDTS you will have no problems. Manifold doesn't do export to TIFF for any surface type except Grayscale (which is no different to an unsigned 8-bit surface at the file level, although some formats do impose image interpretations on the band/s).
