<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Amina,
<div><br>
</div>
<div>The GrADS intrinsic variables (e.g., sqrt, ave, pow) to calculate standard deviation takes undefined values into consideration as long as these values are set to missing values in the control file. </div>
<div><br>
</div>
<div>You could check this by executing: <i>q ctlinfo </i>and check the missing value setting in the
<i>set undef</i> line. </div>
<div><br>
</div>
<div>Hope this helped,</div>
<div>Hosmay,<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">Hosmay Lopez<br>
<span style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">UM/CIMAS/RSMAS NOAA/AOML/PHOD</span><br style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">
<span style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">4301 Rickenbacker Causeway,</span><br style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">
<span style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">Miami, FL 33149, USA</span><br style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">
<span style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">Phone: (305) 361-4329</span><br>
<br>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF221379" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Amina Khan [k.amina93@yahoo.com]<br>
<b>Sent:</b> Monday, August 31, 2015 2:07 PM<br>
<b>To:</b> Hosmay Lopez; GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] how to compute standard deviation in grads<br>
</font><br>
</div>
<div></div>
<div>
<div style="color:#000; background-color:#fff; font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div id="yui_3_16_0_1_1441041602162_7110">Thank you so much Hosmay. </div>
<div id="yui_3_16_0_1_1441041602162_7110">But how can i remove the undefined values from the file.</div>
<div id="yui_3_16_0_1_1441041602162_7108"><br>
</div>
<br>
<div class="qtdSeparateBR"><br>
<br>
</div>
<div class="yahoo_quoted" style="display:block">
<div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div dir="ltr"><font size="2" face="Arial">On Monday, August 31, 2015 10:56 PM, Hosmay Lopez <hlopez@rsmas.miami.edu> wrote:<br>
</font></div>
<br>
<br>
<div class="y_msg_container">
<div id="yiv8768433921"><style type="text/css">
<!--
-->
</style>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi Amina,
<div><br clear="none">
</div>
<div>I f your precipitation variable is named precip, then you could do:</div>
<div><br clear="none">
</div>
<div>Precip_StDev = sqrt(ave(pow(precip , 2), t = 1 , t = nt))</div>
<div><br clear="none">
<div>where, sort function is the square root</div>
<div>ave function is average over time dimension in this case.</div>
<div>pow function is the power function to square precip variable.</div>
<div><br clear="none">
</div>
<div>Hope this helps.</div>
<div><br clear="none">
<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">Hosmay Lopez<br clear="none">
<span style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">UM/CIMAS/RSMAS NOAA/AOML/PHOD</span><br clear="none" style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">
<span style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">4301 Rickenbacker Causeway,</span><br clear="none" style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">
<span style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">Miami, FL 33149, USA</span><br clear="none" style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">
<span style="font-family:verdana,arial,sans-serif; background-color:rgb(255,255,255)">Phone: (305) 361-4329</span><br clear="none">
<br clear="none">
</div>
</div>
</div>
</div>
</div>
<div class="yiv8768433921yqt6553798910" id="yiv8768433921yqt04504">
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="yiv8768433921divRpF646802" style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> gradsusr-bounces@gradsusr.org [gradsusr-bounces@gradsusr.org] on behalf of Amina Khan [k.amina93@yahoo.com]<br clear="none">
<b>Sent:</b> Monday, August 31, 2015 1:35 PM<br clear="none">
<b>To:</b> gradsusr@gradsusr.org<br clear="none">
<b>Subject:</b> [gradsusr] how to compute standard deviation in grads<br clear="none">
</font><br clear="none">
</div>
<div></div>
<div>
<div style="color:#000; background-color:#fff; font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div id="yiv8768433921yui_3_16_0_1_1441041602162_2781">Hi all, </div>
<div dir="ltr" id="yiv8768433921yui_3_16_0_1_1441041602162_2781">I want to compute standard deviation from nc file having precipitation data.</div>
<div dir="ltr" id="yiv8768433921yui_3_16_0_1_1441041602162_2781">There are also some undefined values in file. How can i do this. Please guide me.</div>
<div dir="ltr" id="yiv8768433921yui_3_16_0_1_1441041602162_2781"><br clear="none">
</div>
<div dir="ltr" id="yiv8768433921yui_3_16_0_1_1441041602162_2781"><br clear="none">
</div>
<div dir="ltr" id="yiv8768433921yui_3_16_0_1_1441041602162_2781">Thanks</div>
<div dir="ltr" id="yiv8768433921yui_3_16_0_1_1441041602162_2781">Amina</div>
<div dir="ltr" id="yiv8768433921yui_3_16_0_1_1441041602162_2781"><br clear="none">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>