<div dir="ltr">Dear Kunali, <div>   The error tells you exactly what is wrong. </div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">ncl 5&gt; oro = in-&gt;ORO(:,:)</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:13px">fatal:[&quot;Execute.c&quot;:6321]:</span><span style="font-family:arial,sans-serif;font-size:13px">variable (ORO) is not in file (in)</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">fatal:[&quot;Execute.c&quot;:8565]:</span><span style="font-family:arial,sans-serif;font-size:13px">Execute: Error occurred at or near line 5</span><br></div><div>
<span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">You&#39;re trying to load a variable ORO from the file, but a variable by that name does not exist in the file.  I&#39;d recommend running  ncl_filedump </span><span style="font-size:13px;font-family:arial,sans-serif">/home/kunal/</span><a href="http://14-01.nc/" target="_blank" style="font-size:13px;font-family:arial,sans-serif">14-01.nc</a>   and check the variables in the file.  </div>
<div>Or add print(getfilevarnames(in)) to the script after you load the file. </div><div><br></div><div><br></div><div>Once past that error, as long as oro is equal to 1 over the ocean then you&#39;re good. Otherwise you may want an adjustment on this example from the ncl webpage for  (oro.le.0)</div>
<div> <span style="color:rgb(0,0,0);font-family:courier;font-size:13.333333969116211px;line-height:16px">; More advanced case mask a at locations where ma0 is not-equal-to 2</span></div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.333333969116211px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)">
;
    out1 = <strong style="margin:0px;padding:0px">mask</strong>( a, (ma0.ne.2), True)</pre><div><span style="font-family:arial,sans-serif;font-size:13px">ncl 6&gt; land_only = ts</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">ncl 7&gt; land_only = mask(ts,oro,1)</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Good Luck, </span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div>Alan Brammer</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 7:41 AM, Kunal Bali <span dir="ltr">&lt;<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@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"><div><div>Hello<br></div>I am trying to use the masking scripts for generating data only on land. but i am getting error. My scripts is given below. <br>
<br>In this i am not getting the means of oro (line -5). <br>

Could any one suggest me to how to correct this scripts or how to visualize the data on land only. <br><br>ncl 0&gt; load &quot;/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>ncl 1&gt; load &quot;/usr/local/lib/ncl/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;   <br>


ncl 2&gt; begin<br>ncl 3&gt; in = addfile(&quot;/home/kunal/<a href="http://14-01.nc" target="_blank">14-01.nc</a>&quot;,&quot;r&quot;)<br>ncl 4&gt; ts = in-&gt;TotCH4_A(:,:) <br>ncl 5&gt; oro = in-&gt;ORO(:,:)<br>ncl 6&gt; land_only = ts<br>


ncl 7&gt; land_only = mask(ts,oro,1)<br>ncl 8&gt; wks = gsn_open_wks(&quot;x11&quot;,&quot;mask&quot;)<br>ncl 9&gt; gsn_define_colormap(wks,&quot;BlAqGrYeOrRe&quot;)<br>ncl 10&gt; res = True<br>ncl 11&gt; res@cnFillOn = True<br>


ncl 12&gt; res@cnLinesOn = False<br>ncl 13&gt; res@gsnSpreadColors = True<br>ncl 14&gt; res@gsnSpreadColorStart = 10<br>ncl 15&gt; res@gsnSpreadColorEnd = 96  <br>ncl 16&gt; res@cnLevelSpacingF = 3<br>ncl 17&gt; res@lbLabelString = 4<br>


ncl 18&gt; res@tiMainString = &quot;Land Only&quot;<br>ncl 19&gt; plot = gsn_csm_contour_map_ce(wks,land_onl,res)<br>ncl 20&gt; end<br>fatal:[&quot;Execute.c&quot;:6321]:variable (ORO) is not in file (in)<br>fatal:[&quot;Execute.c&quot;:8565]:Execute: Error occurred at or near line 5<br>


<br><br></div>Thank You<span class="HOEnZb"><font color="#888888"><br clear="all"><div><div><div><div><div dir="ltr"><div>Kunal Bali<br></div><div>Research Scholar <br></div><div>Radio &amp; Atmospheric Science Division <br>
</div><div>CSIR - National Physical Laboratory<br>

</div><div>New Delhi - 110012<br><br></div><div><br></div><div><br></div><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div>


</div></div>
</div></div></div></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>