<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Good Afternoon Kishore,<br>
<br>
I've gone back and tried to just use a plain .ctl file instead of sdfopen and I am still running into a maelstrom of errors:<br>
<br>
<b>Error in gagchk: axis sizes are not the same<br>
Operation error:&nbsp; Incompatable grids <br>
Operation Error:&nbsp; Error from maskout function<br>
Operation Error:&nbsp; Error from aave function<br>
&nbsp; Error ocurred at column 1<br>
DEFINE error:&nbsp; Invalid expression. <br>
Syntax Error:&nbsp; Invalid Operand <br>
&nbsp; 'avgtemp' not a variable or function name<br>
&nbsp; Error ocurred at column 1<br>
DISPLAY error:&nbsp; Invalid expression <br>
&nbsp; Expression = avgtemp<br>
Syntax Error:&nbsp; Invalid Operand <br>
&nbsp; 'avgtemp' not a variable or function name<br>
&nbsp; Error ocurred at column 1<br>
DISPLAY error:&nbsp; Invalid expression <br>
&nbsp; Expression = avgtemp<br>
Error in format:&nbsp; 2rd argument invalid.<br>
&nbsp; Error occurred on line 46<br>
&nbsp; In file /home/muaddib/grads/scripts/dec2013/aavetest.gs</b><br>
<br>
<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3"><font face="Arial"><font size="2" face="Tahoma"><font size="2"><br>
Onward and Upward,<br>
<br>
</font>Aaron D. Perry<br>
</font><font size="3"><font size="3"><font size="2" face="Tahoma">Boston, MA<br>
Lyndon State College '15<br>
Twitter: <a href="https://twitter.com/AaronPerryLSC">@AaronPerryLSC</a><br>
</font></font></font></font></font><font size="3"><font face="Arial"><font size="3"><font size="3"><font size="2" face="Tahoma">Mobile: 617-780-4312</font></font></font></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF248204"><font size="2" color="#000000" face="Tahoma"><b>From:</b> gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Kishore Ragi [kishoreragi@gmail.com]<br>
<b>Sent:</b> Wednesday, January 08, 2014 3:43 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Using Maskout Function To Compute Areal Average<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Before going to write a program, just do the following to make sure it is working fine.
<div><br>
</div>
<div style="">go to the working directory and open grads in terminal and invoke the following commands:</div>
<div style=""><br>
</div>
<div style="">'open temp_var.ctl (don't use sdfopen)</div>
<div style="">'open mask.ctl'</div>
<div style="">'d aave(maskout(temp,mask.2(t=1)),lon=-125,lon=-66,lat=24,lat=50)'<br>
</div>
<div style=""><br>
</div>
<div style="">(An instruction before doing this: open ctl file and check path of its .data file. If not right, correct the path)</div>
<div style=""><br>
</div>
<div style="">Cheers,</div>
<div style=""><br>
</div>
<div style="">Kishore</div>
<div style=""><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Jan 8, 2014 at 12:26 PM, Perry, Aaron @ LSC <span dir="ltr">
&lt;<a href="mailto:Aaron.Perry@lsc.vsc.edu" target="_blank">Aaron.Perry@lsc.vsc.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">I still can't seem to get this aave(maskout command to run properly.
<br>
<br>
I've attached my script and the associated MeteoInfo-generated ctl file to this email to see if anyone could take a look at it for me.
<div class="im"><br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3"><font face="Arial"><font face="Tahoma"><font><br>
Onward and Upward,<br>
<br>
</font>Aaron D. Perry<br>
</font><font size="3"><font size="3"><font face="Tahoma">Boston, MA<br>
Lyndon State College '15<br>
Twitter: <a href="https://twitter.com/AaronPerryLSC" target="_blank">@AaronPerryLSC</a><br>
</font></font></font></font></font><font size="3"><font face="Arial"><font size="3"><font size="3"><font face="Tahoma">Mobile:
<a href="tel:617-780-4312" value="&#43;16177804312" target="_blank">617-780-4312</a></font></font></font></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-size:16px; font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">
gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] on behalf of Kishore Ragi [<a href="mailto:kishoreragi@gmail.com" target="_blank">kishoreragi@gmail.com</a>]<br>
<b>Sent:</b> Tuesday, January 07, 2014 11:44 PM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Using Maskout Function To Compute Areal Average<br>
</font><br>
</div>
<div>
<div class="h5">
<div></div>
<div>
<div dir="ltr"><span style="font-family:Tahoma">Perry,</span>
<div><br>
</div>
<div>you just open your data ctl file and then your maskout ctl file as 2.
<div><br>
</div>
<div>for your area average:&nbsp;<font color="#ff0000">d aave(maskout(your_var,mask.2(t=1)),lon=X1,lon=X2,lat=Y1,lat=Y2)</font></div>
<div><br>
</div>
<div>mask.2 shows that variable mask is second file and use always (t=1) for mask as the t step is only.</div>
<div><br>
</div>
<div>Hope it solves your purpose!!!</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Kishore&nbsp;</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Jan 8, 2014 at 9:24 AM, Yaqiang Wang <span dir="ltr">
&lt;<a href="mailto:yaqiang.wang@gmail.com" target="_blank">yaqiang.wang@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">Look at GrADS online document:&nbsp;<a href="http://www.iges.org/grads/gadoc/gradfuncmaskout.html" target="_blank">http://www.iges.org/grads/gadoc/gradfuncmaskout.html</a>
<div><br>
</div>
<div><span style="font-size:medium; background-color:rgb(224,240,255); font-family:宋体">You can open more than one data-descriptor file. Each file is numbered according to the order in which it was opened.&nbsp;</span><br>
</div>
<div><a href="http://www.iges.org/grads/gadoc/gradcomdopen.html" target="_blank">http://www.iges.org/grads/gadoc/gradcomdopen.html</a><span style="font-size:medium; background-color:rgb(224,240,255); font-family:宋体"><br>
</span></div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div>On Wed, Jan 8, 2014 at 11:41 AM, Perry, Aaron @ LSC <span dir="ltr">&lt;<a href="mailto:Aaron.Perry@lsc.vsc.edu" target="_blank">Aaron.Perry@lsc.vsc.edu</a>&gt;</span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div>
<div>
<div style="direction:ltr; font-size:10pt; font-family:Tahoma">Good Evening All,<br>
<br>
I'm currently trying to compute an areal average and I have created a masked out control file with MeteoInfo for the area that I'd like to compute an average of.
<br>
<br>
What do I do with the MeteoInfo-created .ctl file now?<br>
<br>
The reason why I ask is because there's already a .ctl file for the displayed data and now there's one for just the area and I don't think that I want to be using them both at the same time...<br>
<br>
Any guidance would be greatly appreciated.<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3"><font face="Arial"><font face="Tahoma"><font><br>
Onward and Upward,<br>
<br>
</font>Aaron D. Perry<br>
</font><font size="3"><font size="3"><font face="Tahoma">Boston, MA<br>
Lyndon State College '15<br>
Twitter: <a href="https://twitter.com/AaronPerryLSC" target="_blank">@AaronPerryLSC</a><br>
</font></font></font></font></font><font size="3"><font face="Arial"><font size="3"><font size="3"><font face="Tahoma">Mobile:
<a href="tel:617-780-4312" value="&#43;16177804312" target="_blank">617-780-4312</a></font></font></font></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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>
<span><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
*************************************************<br>
Dr. Yaqiang Wang<br>
Chinese Academy of Meteorological Sciences (CAMS)<br>
46, Zhong-Guan-Cun South Avenue<br>
Beijing, 100081<br>
China<br>
             <br>
<a href="mailto:yaqiang.wang@gmail.com" target="_blank">yaqiang.wang@gmail.com</a><br>
<br>
<a href="http://www.meteothinker.com" target="_blank">http://www.meteothinker.com</a><br>
************************************************** </font></span></div>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">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>
</div>
</div>
</div>
</div>
</body>
</html>