<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17102" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear Rupak,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Could you kindly post also the <A
href="http://defcol1.gs/"><FONT face="Times New Roman"
size=3>defcol1.gs</FONT></A>.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Simon Krichak</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=rupak.rajbhandari@gmail.com
href="mailto:rupak.rajbhandari@gmail.com">Rupak Rajbhandari</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=gradsusr@gradsusr.org
href="mailto:gradsusr@gradsusr.org">GrADS Users Forum</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, August 23, 2011 9:40
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [gradsusr] set parea</DIV>
<DIV><BR></DIV>
<DIV>Hi,</DIV>
<DIV><BR></DIV>
<DIV>I am pasting a script to print four maps which I tested some time ago.
With some modification, I think you can come up with the one you
explained. Except in your case you need three rows and in the bottom row
display the map with out displaying anything (set cmax/cmin) and display the
cbar. Hope it works.</DIV>
<DIV><BR></DIV>
<DIV>Rupak Rajbhandari</DIV>
<DIV>Department of Meteorology</DIV>
<DIV>Trichandra Campus</DIV>
<DIV>Kathmandu</DIV>
<DIV><BR></DIV>
<DIV>**********************************************************************************</DIV>
<DIV>* test vpage</DIV>
<DIV>*</DIV>
<DIV>* Landscape</DIV>
<DIV>*</DIV>
<DIV>* Matrix = 2 is 2 x 2</DIV>
<DIV>* Matrix = 3 is 3 x 3</DIV>
<DIV>* Matrix = 4 is 4 x 4</DIV>
<DIV>*</DIV>
<DIV>* for matrix 3 or 4 little modification is needed.</DIV>
<DIV>*</DIV>
<DIV> matrix=2</DIV>
<DIV><BR></DIV>
<DIV>'reinit'</DIV>
<DIV>'open D:\gridded\npl0p10\RF0P10.ctl'</DIV>
<DIV>'set gxout grfill'</DIV>
<DIV>'set mpdset hires'</DIV>
<DIV>'run <A href="http://defcol1.gs">defcol1.gs</A>'</DIV>
<DIV>*'set vpage off'</DIV>
<DIV>*'set parea off'</DIV>
<DIV>*'set clevs 2 4 6 8 10
15 20 30 40 50 100 500'</DIV>
<DIV>*'set ccols 31 32 33 42 43 51
52 53 62 63 72 73'</DIV>
<DIV><BR></DIV>
<DIV>* margins</DIV>
<DIV>*</DIV>
<DIV> rm=0.75; lm=0.75; tm=0.5; bm=0.5</DIV>
<DIV><BR></DIV>
<DIV>* virtual page limits</DIV>
<DIV>*</DIV>
<DIV> x1=00.0</DIV>
<DIV> x2=11.0</DIV>
<DIV> y1=00.0</DIV>
<DIV> y2=08.5</DIV>
<DIV><BR></DIV>
<DIV> nc=matrix</DIV>
<DIV> nr=matrix</DIV>
<DIV><BR></DIV>
<DIV>* spliting factor</DIV>
<DIV>*</DIV>
<DIV> xext=(x2-x1)/nc</DIV>
<DIV> yext=(y2-y1)/nr</DIV>
<DIV> xm=x2-rm/2</DIV>
<DIV><BR></DIV>
<DIV>say x1' ' x2' ' y1' ' y2' ' xext' ' yext</DIV>
<DIV>say ' '</DIV>
<DIV><BR></DIV>
<DIV> t1=01</DIV>
<DIV> t2=10</DIV>
<DIV> jy=1</DIV>
<DIV> vy1=y1</DIV>
<DIV> vy2=vy1+yext</DIV>
<DIV> while (jy<=nr)</DIV>
<DIV> ix=1</DIV>
<DIV> vx1=x1</DIV>
<DIV> vx2=vx1+xext</DIV>
<DIV> while (ix<=nc)</DIV>
<DIV> 'set vpage 'vx1' 'vx2' 'vy1' 'vy2</DIV>
<DIV> 'set parea 'x1+lm' 'x2-rm' 'y1+bm'
'y2-tm</DIV>
<DIV>* 'set clevs .1 2 3
5 10 15 20 30 40 50 100
150'</DIV>
<DIV>* 'set ccols 31 32 33 42
43 51 52 53 62 63 72
73'</DIV>
<DIV> 'set font 'ix</DIV>
<DIV> 'set string 'ix+2' tc'</DIV>
<DIV> 'display sum(rf,t='t1',t='t2')'</DIV>
<DIV> 'draw title Rainfall amount for 't1' to 't2'
days (mm)'</DIV>
<DIV> if (ix=nc)</DIV>
<DIV> if (jy=nr)</DIV>
<DIV> 'cbarn '1' '1' 'xm'
'y1</DIV>
<DIV> else</DIV>
<DIV> 'cbarn '1' '1' 'xm'
'y2</DIV>
<DIV> endif</DIV>
<DIV> endif</DIV>
<DIV> t1=t1+10</DIV>
<DIV> t2=t2+10</DIV>
<DIV> vx1=vx2</DIV>
<DIV> vx2=vx2+xext</DIV>
<DIV> ix=ix+1</DIV>
<DIV> 'set vpage off'</DIV>
<DIV> 'set parea off'</DIV>
<DIV> endwhile</DIV>
<DIV> vy1=vy2</DIV>
<DIV> vy2=vy1+yext</DIV>
<DIV> jy=jy+1</DIV>
<DIV> endwhile</DIV>
<DIV><BR></DIV><BR>
<DIV class=gmail_quote>On Mon, Aug 22, 2011 at 9:59 PM, saeed bayat <SPAN
dir=ltr><<A
href="mailto:saeedbayat7276@gmail.com">saeedbayat7276@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Dear
GrADS users,<BR>I want to plot 4 maps in 1 page. As mentioned in GrADS
documentation index, I do that steps but it did not<BR>give a good result. I
want to do like this(below), but it does not work!<BR><BR>Please give me an
Idea<BR><BR>Best Regards<BR><FONT color=#888888><BR>Saeed Bayat<BR>M.A
Student of Climatology<BR>Department of Geography<BR>Ferdowsi University of
Mashhad(Iran)<BR></FONT><BR>_______________________________________________<BR>gradsusr
mailing list<BR><A
href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A><BR><A
href="http://gradsusr.org/mailman/listinfo/gradsusr"
target=_blank>http://gradsusr.org/mailman/listinfo/gradsusr</A><BR><BR></BLOCKQUOTE></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>gradsusr mailing
list<BR>gradsusr@gradsusr.org<BR>http://gradsusr.org/mailman/listinfo/gradsusr<BR></BLOCKQUOTE></BODY></HTML>