<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">čt 3. 10. 2019 v 15:36 odesílatel Ken Mankoff <<a href="mailto:mankoff@gmail.com">mankoff@gmail.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>On 2019-10-03 at 15:25 +02, Ondřej Pešek <<a href="mailto:pesej.ondrek@gmail.com" target="_blank">pesej.ondrek@gmail.com</a>> wrote...<br>> but r.out.gdal would export "something" from all the maps in the loop,<br>> wouldn't it? I thought that if I would loop through all my rasters and<br>> pass them to r.out.gdal, it would create an output for every of them,<br>> just the ones outside the computational region will be full of no data<br>> values. I wanted to avoid this export of empty rasters.<br>
<br>In the loop you cant test each raster for some non-null values:<br>
<br>for r in $(g.list...); do<br>  eval $(r.univar -g ...)<br>  if [[ ${sum} != 0 ]]; then...<br>
<br></blockquote><div><br></div>Oh, right. That seems like the smoothest solution if there is no specialized tool. Thanks to all of you. <br></div></div>