concept multiband raster in category postgis

appears as: multiband raster, multibd rasters, multibd rasters
PostGIS in Action, Third Edition

This is an excerpt from Manning's book PostGIS in Action, Third Edition.

Let’s now export only the first band of a multiband raster to a JPEG file:

The listing first creates a new table to hold the multiband rasters. ST_AddBand is used to add the temperature band to the 1-banded precipitation raster so that you end up with a 2-band raster consisting of one band for precipitation and one for temperature. You know that both rasters satisfy the sameness requirement, so the bounding box of a tile in temperature must match the bounding box of a tile in the temperature table.

Listing 12.4. Selecting one band from a multiband raster
SELECT rid, ST_Band(rast,1) As rast
INTO ch12.tmean2
FROM ch12.tmean_prec;

CREATE INDEX idx_tmean2_rast_gist ON ch12.tmean2
USING gist (ST_ConvexHull(rast));