gdal will
you told the program this
" -ot UInt16 -of png "
so it will be a 16 ushort unsgined grayscal png
that will not be a "raw" image
technically gdal dose not output a raw image but a few formats are very close
i normally use EHdr
Code:
gdal_translate -of EHdr 16ppd.geo_bathy.cub 16ppd.geo_bathy.raw
------
Input file size is 5760, 2880
0...10...20...30...40...50...60...70...80...90...100 - done.
file list
Code:
├── 16ppd.geo_bathy.cub
├── 16ppd.geo_bathy.hdr
├── 16ppd.geo_bathy.prj
├── 16ppd.geo_bathy.raw
└── 16ppd.geo_bathy.raw.aux.xml
read the *.hdr text file for the image information
in this case the ISIS3 cub is a 16 bit signed DEM
Code:
BYTEORDER I
LAYOUT BIL
NROWS 2880
NCOLS 5760
NBANDS 1
NBITS 16
BANDROWBYTES 11520
TOTALROWBYTES 11520
PIXELTYPE SIGNEDINT
ULXMAP -20033913.3899541
ULYMAP 10015217.3380241
XDIM 6957.4278138406
YDIM 6957.4278138406
NODATA -32768
and opining the raw using G'Mic
Code:
gmic 16ppd.geo_bathy.raw,short,5760,2880
http://imgbox.com/vhIAObwW
.