<div dir="ltr"><div>Dear Alan<br><br></div>please find the attached file . Here you can see all scripts with out put result. The out put is not coming within the coordinates. How to fix it ??<br></div><div class="gmail_extra">

<br clear="all"><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-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br>

</font></p></div></div></div>
<br><br><div class="gmail_quote">On Sat, Aug 30, 2014 at 3:40 AM, Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<p dir="ltr"><a href="https://www.ncl.ucar.edu/Document/Functions/Shea_util/landsea_mask.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Shea_util/landsea_mask.shtml</a></p>
<p dir="ltr"><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml</a></p>
<p dir="ltr">This is based on a 1x1 land sea file, if you have higher res data then you might want a more accurate mask. <br><br></p>
<p dir="ltr">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot; load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/<a href="https://www.ncl.ucar.edu/Document/Functions/Shea_util/shea_util.shtml" target="_blank">shea_util.ncl</a>&quot;</p>



<p dir="ltr">ncl 2&gt; begin<br>
ncl 3&gt; in = addfile(&quot;/home/kunal/<a href="http://14-01.nc/" target="_blank">14-01.</a><a href="http://14-01.nc/" target="_blank">nc</a>&quot;,&quot;r&quot;)<br>
ncl 4&gt; data = in-&gt;TotCH4_A(:,:) <br>
ncl 5&gt;<br>
printVarSummary(data) ; check coords are named lat lon</p>
<p dir="ltr">a =<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml" target="_blank"><b>addfile</b></a>(&quot;$NCARG_ROOT/lib/ncarg/data/cdf/<a href="http://landsea.nc" target="_blank">landsea.nc</a>&quot;,&quot;r&quot;) lsdata = a-&gt;LSMASK<br>



lsm =<b>landsea_mask</b>(lsdata,data&amp;lat,data&amp;lon)<br>
land_only =<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml" target="_blank"><b>mask</b></a>(data,lsm.ge.1,True)<br>
copyVarCoords(data, land_only) ; in case mask doesn&#39;t do this</p>
<p dir="ltr">ncl 7&gt;<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_only,res)<br>
ncl 20&gt; end</p>
<div class="gmail_quote"><div><div class="h5">On 29 Aug 2014 15:26, &quot;Kunal Bali&quot; &lt;<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@gmail.com</a>&gt; wrote:<br type="attribution"></div></div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><div><div>Could anyone provdies me the scripts for attached file.<br><br></div>If i have variable TotCH4_A , Latitude, Longitude. So what could be the scripts that one. If you write here that would be better because i have tried the example from NCL tutorials but getting errors <br>




<br></div>SO please provides me here if you can. Or i can send one file if anyone interested ??<br><div><br clear="all"><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-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px">




<font color="#1F497D"><br></font></p></div></div></div>
</div></div></div></div>
<br></div></div>_______________________________________________<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>
</blockquote></div><br></div>