Hi, <br>you could use the following bash for loop as a <br>basis for what you want to do:<br><br> for file in `g.mlist rast pattern=searchpattern*`; <br> do r.out.png input=$file output="/tmp/"$file".png"; <br>
done<br> <br>Regards,<br>Daniel<br><br><div class="gmail_quote">On Tue, Apr 12, 2011 at 5:10 AM, Mortsde <span dir="ltr"><<a href="mailto:alex.mortsde@gmail.com">alex.mortsde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Community,<br>
<br>
I'm relatively new to GRASS/unix style commands and was wondering if anyone<br>
had a quick PERL script that could convert LOTS of raster maps to PNG files<br>
without the repetition of going through one by one. I'm not much of a<br>
programmer otherwise I'd write some kind of loop and have a go. The general<br>
form of my rasters is already in a "Name_$Date" style format so I think this<br>
should be pretty easy? I'm attempting to make video files that illustrate<br>
soil saturation with time. I have about 10 years (daily) of soil moisture<br>
that I'm looking to animate so it's a digestible amount of information.<br>
<br>
Thanks for reading/advice!<br>
<font color="#888888"><br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Conversion-of-multiple-rasters-to-PNG-files-tp6263692p6263692.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Conversion-of-multiple-rasters-to-PNG-files-tp6263692p6263692.html</a><br>
Sent from the Grass - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</font></blockquote></div><br>