<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Tahoma","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>You need to specify to GrADS which file to usesing set dfile:<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'>See my ‘set dfile’ additions below (this assumes you sdfopen the
files in the order you specify)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal style='background:white'><span style='color:black'>'sdfopen
/home/precis/wind/uwnd.nc'<br>
'sdfopen /home/precis/precip/prate_Interp.nc'<br>
<br>
'set lat -90 90'<br>
'set lon -180 180'<br>
'set lev 1000 100'<br>
'set t 1 2'<o:p></o:p></span></p>
<p class=MsoNormal style='background:white'><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoNormal style='background:white'><span style='color:black'>‘set
dfile 2’<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:black'>'pre = prate.3*86400'<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:black'>‘set dfile 1’<br>
'p = const(maskout(uwnd.1,pre-1),0,-u)</span><span
style='font-size:11.0pt;font-family:"Tahoma","sans-serif";color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Tahoma","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> gradsusr-bounces@gradsusr.org
[mailto:gradsusr-bounces@gradsusr.org] <b>On Behalf Of </b>wilfried pokam<br>
<b>Sent:</b> 13 March 2012 13:06<br>
<b>To:</b> gradsusers; GrADS Users Forum<br>
<b>Subject:</b> [gradsusr] Performs array assignments based on a conditional
array<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>Hello
Grads users,<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>I want to
assign to the wind zonal wind (at all vertical levels) the value 0 at
grid points where the precipitation is less than 10mm/day. I tried the
following, but I have an error<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>-------------------------------------------------------------<br>
'sdfopen /home/precis/wind/uwnd.nc'<br>
'sdfopen /home/precis/precip/prate_Interp.nc'<br>
<br>
'set lat -90 90'<br>
'set lon -180 180'<br>
'set lev 1000 100'<br>
'set t 1 2'<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>'pre =
prate.3*86400'<br>
'p = const(maskout(uwnd.1,pre-1),0,-u)<br>
----------------------------------------------------<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>Both
'uwnd.nc' and 'prate_Interp.nc' are on the same horizontal grids.<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'><o:p> </o:p></span></p>
</div>
<p class=MsoNormal style='background:white'><span lang=EN-US style='color:black'>Any
help would be appreciated<br>
<br>
Regards<br>
Wilfried</span><span style='color:black'><o:p></o:p></span></p>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'><o:p> </o:p></span></p>
</div>
<div>
<div>
<div>
<div class=MsoNormal align=center style='text-align:center;background:white'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>
<hr size=1 width="100%" align=center>
</span></div>
<p class=MsoNormal style='background:white'><b><span style='font-size:10.0pt;
font-family:"Arial","sans-serif";color:black'>De :</span></b><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'> Arlindo
Meque <mequitomz@yahoo.com.br><br>
<b>À :</b> gradsusers <gradsusr@gradsusr.org> <br>
<b>Envoyé le :</b> Vendredi 2 décembre 2011 14h08<br>
<b>Objet :</b> [gradsusr] How to match land-ocean boundaries?</span><span
style='color:black'><o:p></o:p></span></p>
</div>
<p class=MsoNormal style='background:white'><span style='color:black'><o:p> </o:p></span></p>
<div id=yiv829727412>
<div>
<div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'> <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>I am
plotting the precipitation field from CRU data.<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>Is there
any function that will make my variable to match the political boundary on the
eastern side of the map? Please find attached the plot. It seems that the
precipitation field does not follow exactly the coastal line. <o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>I hope my
question is clear.<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>Best
regards,<o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='background:white'><span style='color:black'>Arlindo <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt;background:white'><span
style='color:black'><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>
<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>