Maris,<br>
thanks very much! <br>
<br>
do you know how i can change the text size of the legend?<br><br>
-vishal<br><div><span class="gmail_quote">On 9/7/06, <b class="gmail_sendername">Māris Nartišs</b> <<a href="mailto:maris.gis@gmail.com">maris.gis@gmail.com</a>> 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>one thing why I love GRASS - it works from comandline :)<br><br>To automate GRASS tasks You can use ANY programming language You are familiar<br>and wich can run shell commands (I used PHP as I was more familiar with PHP).
<br><br>I attached simple script for beginning. Just tweak it's values, add aditional<br>GRASS comands to get nice looking output. Almost all GRASS modules have<br>comandline options to do things that can be done with mouse, just look at
<br>they manuals.<br><br><br>wbr,<br>Maris.<br><br>On Thursday 07 September 2006 10:46, Vishal Mehta wrote:<br>> Hi all,<br>> thanks so much- i was able to set all my 100 rainfall maps to one set of<br>> rules, using
<br>> # add color rules rainrules.txt to each rainfall map<br>> for MAP in `g.mlist type=rast pat=rain*` ; do<br>> echo "Working on: $MAP"<br>> r.colors map=$MAP color=rules<rules.txt<br>> done
<br>><br>> where rainrules.txt was (units are monthly rain in mm*10)<br>> 0 gray<br>> 100 yellow<br>> 1000 green<br>> 5000 cyan<br>> 10000 blue<br>> 20000 violet<br>> 32300 red<br>> end<br>>
<br>> Now before i look into animation, i could use your advice on the following:<br>> step1 : I need to automate (since there are 100 maps), conversion of<br>> each map - with legend (appropriately sized; right now with
d.rast.leg,<br>> or d.legend its too big) and preferably also a title - to a png.<br>> Normally i've just done d.rast mapname, then exported as picture using the<br>> GUI..<br>><br>> Can you suggest a way to automate the above?
<br>><br>> thanks,<br>> vishal<br>><br>> On 9/7/06, Māris Nartišs <<a href="mailto:maris.gis@gmail.com">maris.gis@gmail.com</a>> wrote:<br>> > Hi,<br>> > You mean like this?:<br>> > ## Encode all .png files in directory to
out.avi with 15 frames per<br>> > second.<br>> > mencoder "mf://*.png" -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 "mencoder" 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<br>> > action -<br>> > filling Smiltene ice damed lake from seed point) You can see how changes
<br>> > lake<br>> > color as it get's deeper.<br>> ><br>> > Vishal Mehta - You could try out to define map's colors using explict<br>> > 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<br>> > colors<br>> > to values and apply color table with r.colors to all maps (sorry, no time<br>> > to<br>> > test).
<br>> ><br>> ><br>> > Maris.<br>> ><br>> > On Thursday 07 September 2006 04:00, Hamish wrote:<br>> > > for MAP in `g.mlist type=rast pat=rain*` ; do<br>> > > <a href="http://r.info">
r.info</a> -r $MAP<br>> > > done<br>> > ><br>> > > If anyone has tips on constructing high-quality MPEG-4 movies from a<br>> > > series of still frames, I'd be interested in hearing them.
<br>> > ><br>> > ><br>> > ><br>> > > 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><br><br></blockquote></div><br>