with gdal, you can color an image based on gdal_dem (color_relief)
the syntax of the color configuration file is derived from the one
supported by GRASS r.colors utility. ESRI HDR color table files (.clr)
also match that syntax. The alpha component and the support of tab and
comma as separators are GDAL specific extensions
aspect: aspect oriented grey colors
aspectcolr: aspect oriented rainbow colors
bcyr: blue through cyan through yellow to red
bgyr: blue through green through yellow to red
byg: blue through yellow to green
byr: blue through yellow to red
celsius: blue to red for degree Celsius temperature
corine: EU Corine land cover colors
curvature: for terrain curvatures (from v.surf.rst and r.slope.aspect)
differences: differences oriented colors
elevation: maps relative ranges of raster values to elevation color ramp
etopo2: colors for ETOPO2 worldwide bathymetry/topography
evi: enhanced vegetative index colors
gdd: accumulated growing degree days
grey: grey scale
grey.eq: histogram-equalized grey scale
grey.log: histogram logarithmic transformed grey scale
grey1.0: grey scale for raster values between 0.0-1.0
grey255: grey scale for raster values between 0-255
gyr: green through yellow to red
haxby: relative colors for bathymetry or topography
ndvi: Normalized Difference Vegetation Index colors
population: color table covering human population classification breaks
population_dens: color table covering human population density classification breaks
precipitation: precipitation color table (0..2000mm)
precipitation_monthly: precipitation color table (0..1000mm)
rainbow: rainbow color table
ramp: color ramp
random: random color table
rstcurv: terrain curvature (from r.resamp.rst)
rules: create new color table based on user-specified rules read from stdin
ryb: red through yellow to blue
ryg: red through yellow to green
sepia: yellowish-brown through to white
slope: r.slope.aspect-type slope colors for raster values 0-90
srtm: color palette for Shuttle Radar Topography Mission elevation
terrain: global elevation color table covering -11000 to +8850m
wave: color wave
Rem: in you case, your gdalinfo outputs inform you that your original file is in Float, while the use of color tables requires Byte or UInt16. Therefore you could translate your file using '''gdal_translate input.tif output.tif -ot Byte''' in order to allow for unique values.
Here is a trick to solve your problem.
From the top menu, go to Raster>Conversion>Translate.
Then, in the Translate window, perform the following tasks:
- Select your input layer.
- Select the output path and write an output file name.
- Choose target SRS (desired output coordinate reference system).
- After performing the above steps, you will see the command at the bottom (inside a text box).
- Edit this command, and add "-b 1" at the end if you want to extract the first band from the input image. Add "-b 2" if you want to extract the second band, and so on.
For example (To extract the first band):
gdal_translate -of GTiff "path of input image" "path of output image" -b 1
For example (To extract the first two bands):
gdal_translate -of GTiff "path of input image" "path of output image" -b 1 -b 2
In this way, you can extract different bands and their combinations from an input image.
For more description, visit the documentation.
Best Answer
Try:
Seems you can choose between several float types: "Byte"/"Int16"/"UInt16"/"UInt32"/"Int32"/"Float32"/"Float64"/"CInt16"/"CInt32"/"CFloat32"/"CFloat64"