I have a database of point data in PostGIS that I'd like to work with as voxel data. For each voxel, the value would be the number of particles within its volume. Let's say for the sake of argument each cell is n degrees lat by n degrees long, m feet high, spanning the globe.
I'm wondering how to set up this database: the first thing that comes to mind is to use a raster where each grid cell is the base for the voxel at that area, then to store the voxel data for each altitude range in bands of the raster.
Another option I'd considered is to make a table of polygons representing all the voxels, then have another table of values and voxel ids.
Is there a standard method for working with 3-dimensional raster data in PostGIS?