<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/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/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/nclscripts/csm/contributed.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/nclscripts/csm/diagnostics_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/nclscripts/csm/shea_util.ncl&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%">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">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">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;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_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;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,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" width="316" height="215"></span></p>

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

</div>