<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 28, 2013, at 2:00 AM, Zilore Mumba wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">As my earlier post had no heading, I am reposting the same in the hope that it may be seen and I can get help.<br>
I hope someone can find time to explain to me a few things on panel plots.<br>
In the <a href="http://panles_demo.gs/" target="_blank">panles_demo.gs</a> (snippet below),I do not understand the following:<br>
<br>
1. for four plots on a page I loop through p=1 to p=4, why do we display t<br>
(I want to display what I have in my file;<br></div></blockquote>The display of variable 't' in the panels_demo script is only for demonstration purposes. Of course, you can plot any variable or expression you want to.<br><blockquote type="cite"><div dir="ltr">
2. what is the global variable defined by _vpg.p in this script?<br></div></blockquote>That is a script variable that contains the 'set vpage' command for panel number p. </div><div><br><blockquote type="cite"><div dir="ltr">
3. How do I put a title corresponding to the graphic validity time, on each<br>
plot?<br></div></blockquote>One way to do this is to invoke 'q time' and parse the output to get a string that specifies the time that corresponds to your plot and then use 'set string' and 'draw string' to draw it above your plot. Below is a code snippet that I use for this purpose:</div><div><br></div><div><div>function mydate</div><div> 'query time'</div><div> sres = subwrd(result,3)</div><div> wday = subwrd(result,6)</div><div> i = 1</div><div> while (substr(sres,i,1)!='Z')</div><div> i = i + 1</div><div> endwhile</div><div> hour = substr(sres,1,i)</div><div> isav = i</div><div> i = i + 1</div><div> while (substr(sres,i,1)>='0' & substr(sres,i,1)<='9')</div><div> i = i + 1</div><div> endwhile</div><div> day = substr(sres,isav+1,i-isav-1)</div><div> month = substr(sres,i,3)</div><div> year = substr(sres,i+3,4)</div><div> return (hour' 'wday' 'day' 'month' 'year)</div></div><div><br></div><div>--Jennifer<br><br><blockquote type="cite"><div dir="ltr">
Help will be appreciated.<br>
Zilore Mumba<br>
<br>
rc = gsfallow("on")<br>
if (args='')<br>
say 'Two arguments are required: the # of rows and # of columns'<br>
return<br>
else<br>
nrows = subwrd(args,1)<br>
ncols = subwrd(args,2)<br>
endif<br>
<br>
'use wrfout_d01_2013-07-27_00.ctl'<br>
'reset'<br>
panels(args)<br>
p = 1<br>
ptot = nrows * ncols<br>
'set mproj scaled'<br>
<br>
* Loop through each panel and draw a plot<br>
while (p <= ptot)<br>
_vpg.p<br>
'set t 'p<br>
'set grads off'<br>
'd t'<br>
p = p + 1<br>
endwhile<br>
</div>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030 <br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>