I wrote this to you by email:
-----------------------------------------------------
Hi,
I downloaded that bathymetry file from the snowy server and tried your 16k normalmap generation pipeline of commands. The result was perfect as always. So far I have not heard of any problems with my tools that were due to the tools.
You did not tell me your operating system which is a must of course. You spoke of Photoshop so I assume you are on Windows, although this is not compelling. E.g., I always work with a Win XP and a Linux machine in parallel
.
Another remark is that this file really does not satisfy the basic assumption of a 2:1 aspect ratio. This may become possibly problematic on some OS. The broken pipe statement at the end looks like if there are a few pixels missing or too much in the pipe... It's easy to correct the size to exactly 2:1 using e.g. Photoshop, of course.
Anyway under Linux everything went AND looked fine in my test run. But truncations may work slightly differently in Windows. I did not have exactly the published version of my nmtools on my machine anymore, since I coded already a much faster update. But this really should not have influenced things along your lines.
Did you try also to unzip the bathymetry file first, independently of the rest? Like just this command: gzip -d <file>
And then to work with the unzipped file as input to resc2pow2? Perhaps your gzip is broken...?
To further debug your problem, you may test each step in the pipeline separately.
Like so:
resc2pow2 21601 1 < gebco_bathy.21601x10801.bin >out16k.bin
Then you can e.g. load that .bin file in Photoshop and look whether you got the correct number of pixels assuming 16384 x 8192. If even one pixel is missing or in excess in the height or in the width, you'll have a problem and the pipe breaks.
Computers are VERY accurate "animals"
Good luck
----------------------------------------------------
But then I noticed that you did not follow my instructions above, really:
Instead of my
you used instead one pixel less,
despite the incorrect 2:1 aspect ratio! In any case your problem is almost certainly due to this issue.
Bye Fridger