Hi all,<br>
thanks so much- i was able to set all my 100 rainfall maps to one set of rules, using<br>
<span style="color: rgb(51, 102, 255);"># add color rules rainrules.txt to each rainfall map</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">for MAP in `g.mlist type=rast pat=rain*` ; do</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">echo &quot;Working on: $MAP&quot; </span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">r.colors map=$MAP color=rules&lt;rules.txt</span><br style="color: rgb(51, 102, 255);">
<span style="color: rgb(51, 102, 255);">done <br>
<br>
<span style="color: rgb(0, 0, 0);">where rainrules.txt was (units are monthly rain in mm*10)</span><br>
0 gray<br>
100 yellow<br>
1000 green<br>
5000 cyan<br>
10000 blue<br>
20000 violet<br>
32300 red<br>
end<br>
</span><br>
Now before i look into animation, i could use your advice on the following:<br>
step1 :&nbsp; I need to automate (since there are 100 maps), conversion of <br>
&nbsp; each map - with legend (appropriately sized; right now with
d.rast.leg, or d.legend its too big) and preferably also a title&nbsp;
-&nbsp; to a png. <br>
Normally i've just done d.rast mapname, then exported as picture using the GUI..<br>
<br>
Can you suggest a way to automate the above? <br>
<br>
thanks,<br>
vishal<br>
<br>
<br><div><span class="gmail_quote">On 9/7/06, <b class="gmail_sendername">Māris Nartišs</b> &lt;<a href="mailto:maris.gis@gmail.com">maris.gis@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>You mean like this?:<br>## Encode all .png files in directory to out.avi with 15 frames per second.<br>mencoder &quot;mf://*.png&quot; -mf fps=15 -o out.avi #-ovc here<br>## DivX - libavcodec MPEG 4 (DivX5)<br>-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=1800
<br>## XviD<br>-ovc xvid -xvidencopts bitrate=1024<br>## DivX4<br>-ovc divx4 -divx4opts q=5<br><br>Uses mplayer's encoder. Choose one of encoding formats and append to end<br>of &quot;mencoder&quot; line. Unfortunately only way to know quality settings is by
<br>encoding, watching result and reendocing with different params.<br><br>Example (it's quite old and I don't remeber encoding params):<br><a href="http://www.aiknc.lv/1_sm_65_ledus.avi">http://www.aiknc.lv/1_sm_65_ledus.avi
</a><br>(Location: North Vidzeme, Latvia. Content: r.lake mapcalc version in action -<br>filling Smiltene ice damed lake from seed point) You can see how changes lake<br>color as it get's deeper.<br><br>Vishal Mehta - You could try out to define map's colors using explict category
<br>values (will this work with FP maps?) - just create file containing color<br>rules with full range of data values (min, max for all maps), assign colors<br>to values and apply color table with r.colors to all maps (sorry, no time to
<br>test).<br><br><br>Maris.<br><br>On Thursday 07 September 2006 04:00, Hamish wrote:<br>&gt; for MAP in `g.mlist type=rast pat=rain*` ; do<br>&gt;&nbsp;&nbsp; <a href="http://r.info">r.info</a> -r $MAP<br>&gt; done<br>&gt;<br>&gt; If anyone has tips on constructing high-quality MPEG-4 movies from a
<br>&gt; series of still frames, I'd be interested in hearing them.<br>&gt;<br>&gt;<br>&gt;<br>&gt; Hamish<br><br>_______________________________________________<br>grassuser mailing list<br><a href="mailto:grassuser@grass.itc.it">
grassuser@grass.itc.it</a><br><a href="http://grass.itc.it/mailman/listinfo/grassuser">http://grass.itc.it/mailman/listinfo/grassuser</a><br></blockquote></div><br>