<div dir="ltr"><div><div><div><div><div><div>Hi list,<br><br></div>I have raster data stored in a table row-col format as measure(rowy integer, colx integer, band integer, value float). <br></div><br></div>I've tried loading a multidimensional array (row x col x bands) with no success, however building a 2d array (row x col) works but it seems contrived, especially once I need to stack the bands. I'm still figuring the best way to store the rasters, but I might end up storing 39 bands in a single raster. For now building an array isn't very fast, so I'm looking for speed improvement as well.<br><br>I wonder what's the most efficient way to populate a 
raster with data of this shape ? My actual method wouldn't work with 
sparse data and would require to pad the array with nodata values. <br><br></div>I've put out a gist that explains my solution with sample data : <a href="https://gist.github.com/etiennebr/370a773029160c30d165#file-rowcol-raster-sql">https://gist.github.com/etiennebr/370a773029160c30d165#file-rowcol-raster-sql</a><br><br></div>Thanks for your help,<br></div>Etienne<br><div><div><br></div></div></div>