I'm trying to create an elevation map using the output from gdal_translate. When I run gdal I can convert to both PNG and ENVI and combine the results to make something like the following image.
Here's the command I use:
gdal_translate -of PNG -scale 23.000 4367.000 0 256 Rainier.tif Rainier.png
gdal_translate -of ENVI -scale 23.000 4367.000 0 256 Rainier.tif Rainier.bin
That's great. In fact it's exactly the result that I want, except for one thing, I want to be able to specify an outsize. Let's say that I want the image to be 200x200.
Here's the command I use:
gdal_translate -of PNG -scale 23.000 4367.000 0 256 -outsize 200 200 Rainier.tif Rainier.png
gdal_translate -of ENVI -scale 23.000 4367.000 0 256 -outsize 200 200 Rainier.tif Rainier.bin
The PNG image turns out the way that I expect but when I try to utilize the ENVI map to change the elevation it gives me an unexpected result.
Is gdal_translate -outsize broken for ENVI? or am I doing something wrong?
أكثر...

Here's the command I use:
gdal_translate -of PNG -scale 23.000 4367.000 0 256 Rainier.tif Rainier.png
gdal_translate -of ENVI -scale 23.000 4367.000 0 256 Rainier.tif Rainier.bin
That's great. In fact it's exactly the result that I want, except for one thing, I want to be able to specify an outsize. Let's say that I want the image to be 200x200.
Here's the command I use:
gdal_translate -of PNG -scale 23.000 4367.000 0 256 -outsize 200 200 Rainier.tif Rainier.png
gdal_translate -of ENVI -scale 23.000 4367.000 0 256 -outsize 200 200 Rainier.tif Rainier.bin
The PNG image turns out the way that I expect but when I try to utilize the ENVI map to change the elevation it gives me an unexpected result.

Is gdal_translate -outsize broken for ENVI? or am I doing something wrong?
أكثر...