<div dir="ltr">Change<br><br><p style="margin-bottom:0.0001pt" class="MsoNormal"><span style="font-size:12pt;line-height:107%">precip1 =
mask(precip,lsm.eq.0,False)</span></p>

<p style="margin-bottom:0.0001pt" class="MsoNormal"><span style="font-size:12pt;line-height:107%">printVarSummary(precip1)                        ; &lt;=== no meta data<br></span></p><p style="margin-bottom:0.0001pt" class="MsoNormal"><br><span style="font-size:12pt;line-height:107%"></span></p><p style="margin-bottom:0.0001pt" class="MsoNormal"><span style="font-size:12pt;line-height:107%">To</span></p><p style="margin-bottom:0.0001pt" class="MsoNormal"><br></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">precip =
mask(precip,lsm.eq.0,False)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">printVarSummary(precip)</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><br><span style="font-size:12pt;line-height:107%"></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">or</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><br><span style="font-size:12pt;line-height:107%"></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><br></p><p style="margin-bottom:0.0001pt" class="MsoNormal"><span style="font-size:12pt;line-height:107%">precip1 =
mask(precip,lsm.eq.0,False)</span></p><p style="margin-bottom:0.0001pt" class="MsoNormal"><span style="font-size:12pt;line-height:107%">copy_VarMeta(precip, precip1)<br></span></p>

<p style="margin-bottom:0.0001pt" class="MsoNormal"><span style="font-size:12pt;line-height:107%">printVarSummary(precip1)</span></p><p style="margin-bottom:0.0001pt" class="MsoNormal"><br><span style="font-size:12pt;line-height:107%"></span></p><p style="margin-bottom:0.0001pt" class="MsoNormal"><span style="font-size:12pt;line-height:107%">=====<br></span></p><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 7, 2017 at 7:34 AM, Priyanka Silva <span dir="ltr">&lt;<a href="mailto:priyankakeraminiya6@gmail.com" target="_blank">priyankakeraminiya6@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">

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">Hi,</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">I want to plot precipitation over
land area. So I <span> </span>tried to create an ocean
mask for global precipitation but my plot does not show precipitation over land
areas. When I plot I could see the following warning.</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">(0)<span>     </span>check_for_y_lat_coord: Warning: Data
either does not contain a valid latitude coordinate array or doesn&#39;t contain
one at all.</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">(0)<span>     </span>A valid latitude coordinate array should
have a &#39;units&#39; attribute equal to one of the following values: </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">(0)<span>         </span>&#39;degrees_north&#39; &#39;degrees-north&#39;
&#39;degree_north&#39; &#39;degrees north&#39; &#39;degrees_N&#39; &#39;Degrees_north&#39; &#39;degree_N&#39; &#39;degreeN&#39;
&#39;degreesN&#39; &#39;deg north&#39;</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">(0)<span>     </span>check_for_lon_coord: Warning: Data either
does not contain a valid longitude coordinate array or doesn&#39;t contain one at
all.</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">(0)<span>     </span>A valid longitude coordinate array should
have a &#39;units&#39; attribute equal to one of the following values: </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">(0)<span>         </span>&#39;degrees_east&#39; &#39;degrees-east&#39;
&#39;degree_east&#39; &#39;degrees east&#39; &#39;degrees_E&#39; &#39;Degrees_east&#39; &#39;degree_E&#39; &#39;degreeE&#39;
&#39;degreesE&#39; &#39;deg east&#39;</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">My script and plot are as follows.</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">Greatly appreciate your help.</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">Thank you.</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">load
&quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_code.ncl&quot;</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">load
&quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_csm.ncl&quot;</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">load
&quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/contributed.<wbr>ncl&quot;</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">load
&quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/diagnostics_<wbr>cam.ncl&quot;</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">load
&quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/shea_util.ncl&quot;</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">;-----------------------------<wbr>------------------------------<wbr>-----------------</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">begin</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">f<span>  
</span>=<span> 
</span>addfile(&quot;<a href="http://mon.precip.nc" target="_blank">mon.precip.nc</a>&quot;,&quot;r&quot;)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">precip = f-&gt;precip(0,:,:)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">a =
addfile(&quot;<a href="http://landsea.nc" target="_blank">landsea.nc</a>&quot;,&quot;r&quot;)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">lsdata = a-&gt;LSMASK</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">lsm =
landsea_mask(lsdata,precip&amp;<wbr>lat,precip&amp;lon)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">precip1 =
mask(precip,lsm.eq.0,False)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">printVarSummary(precip1)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">wks1
=gsn_open_wks(&quot;X11&quot;,&quot;precip_<wbr>mod1&quot;)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">gsn_define_colormap(wks1,&quot;<wbr>BrownBlue12&quot;)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">res1 = True</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">res1@cnLinesOn = False</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">res1@cnFillOn = True ; turn color
on</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">res1@gsnSpreadColors = True</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">res1@tiMainString = &quot;
precipitation&quot;</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">plot =
gsn_csm_contour_map_ce(wks1,<wbr>precip1,res1)</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%">end</span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> </span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span style="font-size:12pt;line-height:107%"> <img src="cid:ii_15b489ebca9a4839" alt="Inline image 1" height="215" width="316"></span></p>

<p class="MsoNormal" style="text-align:center" align="center"><span style="font-size:12pt;line-height:107%;color:red"> </span></p>

</div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>