<div dir="auto">I am doing it manually for now, picking the files one by one, but i have come up with a way to make a string of text in excel for each raster elevation and combining into one and then pasting into grass module.  i will send results this wkd, and i will try your recom.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri., May 3, 2019, 08:54 Moritz Lennert, <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 26/04/19 03:40, Francois Chartier wrote:<br>
> Hi<br>
> <br>
> I would like to combine potentially 100s of 2d rasters into one 3d raster.<br>
> <br>
> Instead of using r.to.rast3 which could take a long time to prepare the <br>
> setting, is there a way to export the raster as point files, and combine <br>
> them using for example MsAccess, and then reimporting them into one 3d <br>
> raster file?<br>
> <br>
> Alternatively, is it possible to combine several 3d raster into one 3d <br>
> raster?  i could combine ten 2d rasters into one and then combine the <br>
> multiple 3d rasters into one larger one.<br>
<br>
If Stefan's suggestion does not help, and if each 2D raster is of one <br>
constant height, you could try a combination of <a href="http://r.out.xyz" rel="noreferrer noreferrer" target="_blank">r.out.xyz</a> and <a href="http://r3.in.xyz" rel="noreferrer noreferrer" target="_blank">r3.in.xyz</a> <br>
with some magic in between to include a z. Here's an uncomplete and <br>
untested algorithm for Linux in<br>
<br>
height = 0<br>
<br>
for each raster:<br>
        height = height + step<br>
        <a href="http://r.out.xyz" rel="noreferrer noreferrer" target="_blank">r.out.xyz</a> raster out=- | awk -v var=$height -F'|' '{print <br>
$1,$2,var,$3}' >> combined_raster<br>
<br>
then<br>
<br>
<a href="http://r3.in" rel="noreferrer noreferrer" target="_blank">r3.in</a>;xyz combined_raster<br>
<br>
<br>
Moritz<br>
<br>
</blockquote></div>