<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>hello,</DIV>
<DIV>it seems you can't type "&nbsp;&nbsp;rc&nbsp;=&nbsp;gsfallow("on") " directly &nbsp;in the command line, but instead you can write it in&nbsp;a script file (.gs). here is an example for using panels() function to draw&nbsp;multi-panel&nbsp;plot, hope it can help you.</DIV>
<DIV>&nbsp;</DIV>
<DIV>* draw multi-panel plot, the example is 4 panels<BR>*Modified By Jian Zeng from beijing meteorological bureau<BR>*ensure panels.gsf exists&nbsp; or download it from <A href="ftp://grads.iges.org/grads/scripts/panels.gsf">ftp://grads.iges.org/grads/scripts/panels.gsf</A><BR>*<BR>'reinit'<BR>rc = gsfallow("on")<BR>nrows=2<BR>ncols=2 <BR>args=nrows%' '%ncols<BR>'sdfopen E:\some\place\somedata.dat'</DIV>
<DIV>'set mproj scaled'<BR>panels(args)<BR>*p is the panel number, p=1 means the first panel<BR>p = 1<BR>*ptot indicate the total numbers of panels (or virtual pages)<BR>ptot = nrows * ncols<BR>*here is the loop, draw panel one by one<BR>while (p &lt;= ptot)<BR>*_vpg.p seting the&nbsp;virtual page, NO.p<BR>&nbsp;&nbsp;&nbsp; _vpg.p<BR>&nbsp;&nbsp;&nbsp; 'set parea 1 9.8 1 7.5'<BR>&nbsp;&nbsp; 'set t 'p<BR>&nbsp;&nbsp; 'set grads off'<BR>&nbsp;&nbsp; 'set gxout shaded'<BR>&nbsp;&nbsp; 'set font 2'<BR>&nbsp;&nbsp; 'set&nbsp; xlopts 1 4 0.2';'set&nbsp; ylopts 1 4 0.2'&nbsp; <BR>&nbsp;&nbsp; 'd skt'<BR>&nbsp;&nbsp; 'set font 0'<BR>&nbsp;&nbsp; 'cbar_interp 1 1 1'<BR>&nbsp;&nbsp; 'zb 30 30 0.1'<BR>&nbsp;&nbsp;&nbsp; 'set font 5';'set strsiz 0.3 0.3'<BR>&nbsp;&nbsp; 'draw string 3.5 8 skt(t='p',panel='p')' <BR>&nbsp;&nbsp; p = p + 1<BR>endwhile<BR>&nbsp; 'set vpage off'<BR>'printim e:\some\place\somepic.png png white x800 y600'<BR>;<BR><BR>Jian Zeng<BR><BR><BR></DIV>
<DIV></DIV>
<DIV id="divNeteaseMailCard"></DIV>
<DIV><BR></DIV><PRE><BR>At&nbsp;2012-09-18&nbsp;18:41:51,"TYTECA&nbsp;Sophie"&nbsp;&lt;sophie.tyteca@meteo.fr&gt;&nbsp;wrote:
&gt;Hello,
&gt;
&gt;I&nbsp;want&nbsp;to&nbsp;use&nbsp;GrADS&nbsp;script&nbsp;function&nbsp;"panels.gsf"&nbsp;to&nbsp;draw&nbsp;multi-panel&nbsp;plot
&gt;all&nbsp;scripts&nbsp;are&nbsp;here:&nbsp;/opt/GrADS/lib&nbsp;and&nbsp;&nbsp;GASCRP=/opt/GrADS/lib
&gt;I&nbsp;see&nbsp;in&nbsp;panels_demo.gs&nbsp;that&nbsp;I&nbsp;have&nbsp;to&nbsp;use&nbsp;"gsfallow"&nbsp;first,&nbsp;right?
&gt;See&nbsp;below&nbsp;my&nbsp;try&nbsp;:
&gt;
&gt;Grid&nbsp;Analysis&nbsp;and&nbsp;Display&nbsp;System&nbsp;(GrADS)&nbsp;Version&nbsp;2.0.1
&gt;Copyright&nbsp;(c)&nbsp;1988-2011&nbsp;by&nbsp;Brian&nbsp;Doty&nbsp;and&nbsp;the
&gt;Institute&nbsp;for&nbsp;Global&nbsp;Environment&nbsp;and&nbsp;Society&nbsp;(IGES)
&gt;GrADS&nbsp;comes&nbsp;with&nbsp;ABSOLUTELY&nbsp;NO&nbsp;WARRANTY
&gt;See&nbsp;file&nbsp;COPYRIGHT&nbsp;for&nbsp;more&nbsp;information
&gt;
&gt;Config:&nbsp;v2.0.1&nbsp;little-endian&nbsp;readline&nbsp;printim&nbsp;grib2&nbsp;netcdf&nbsp;hdf4-sds&nbsp;hdf5&nbsp;
&gt;opendap-grids,stn&nbsp;geotiff&nbsp;shapefile
&gt;Issue&nbsp;'q&nbsp;config'&nbsp;command&nbsp;for&nbsp;more&nbsp;detailed&nbsp;configuration&nbsp;information
&gt;GX&nbsp;Package&nbsp;Initialization:&nbsp;Size&nbsp;=&nbsp;8.5&nbsp;11
&gt;ga-&gt;&nbsp;open&nbsp;PLGEO500.ctl
&gt;Scanning&nbsp;description&nbsp;file:&nbsp;&nbsp;PLGEO500.ctl
&gt;Data&nbsp;file&nbsp;PLGEO500.SG3.1959.dat&nbsp;is&nbsp;open&nbsp;as&nbsp;file&nbsp;1
&gt;LON&nbsp;set&nbsp;to&nbsp;0&nbsp;360
&gt;LAT&nbsp;set&nbsp;to&nbsp;-87.864&nbsp;87.864
&gt;LEV&nbsp;set&nbsp;to&nbsp;500&nbsp;500
&gt;Time&nbsp;values&nbsp;set:&nbsp;1959:1:1:0&nbsp;1959:1:1:0
&gt;E&nbsp;set&nbsp;to&nbsp;1&nbsp;1
&gt;ga-&gt;&nbsp;rc&nbsp;=&nbsp;gsfallow("on")
&gt;Syntax&nbsp;Error:&nbsp;&nbsp;Invalid&nbsp;Operand
&gt;&nbsp;&nbsp;&nbsp;'gsfallow'&nbsp;not&nbsp;a&nbsp;variable&nbsp;or&nbsp;function&nbsp;name
&gt;&nbsp;&nbsp;&nbsp;Error&nbsp;ocurred&nbsp;at&nbsp;column&nbsp;1
&gt;DEFINE&nbsp;error:&nbsp;&nbsp;Invalid&nbsp;expression.
&gt;
&gt;thank&nbsp;you&nbsp;for&nbsp;your&nbsp;help
&gt;_______________________________________________
&gt;gradsusr&nbsp;mailing&nbsp;list
&gt;gradsusr@gradsusr.org
&gt;http://gradsusr.org/mailman/listinfo/gradsusr
</PRE></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>