<div dir="ltr">Hello<div><br></div><div>I believe I am in appropriately using the ST_Clip function on a multiband raster. I have a raster with 13 bands and I want to retrieve from the clip bands # 1,3</div><div><br></div><div>How do I do that?</div><div><br></div><div>I tried using:</div><div>array[1,3] as bnd</div><div><br></div><div>Didn't work still returns 13 bands.</div><div><br></div><div><div>with bnd_num as</div><div>(</div><div>select array[1,3] as bnd</div><div>)</div><div>select p.geoid, p.label, ST_Numbands(ST_CLIP(r.rast,p.geom,b.bnd, True))</div><div>from bnd_num b, polygon p inner join modis_igbp_stack r on ST_Intersects(r.rast, p.geom);</div></div></div>