<div dir="auto">Have you cansidered treating your data as multiband raster?<div dir="auto">You can use raster2pgsql and then do data processing with the rest of raster functions  (map algebra, etc.).</div><div dir="auto"><br></div><div dir="auto">giovanni</div></div>