<div dir="ltr"><div class="gmail_default" style="font-size:small">Ashehad,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">NCL doesn&#39;t have a list of desert regions built into the package, but if you have a shapefile that contains desert regions, then you can use this shapefile to either create a new data variable that is set to missing at any locations that fall inside a desert region, or you can simply draw all the desert regions in white.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can usually find shapefiles that contain the information that you need, by using google.  I found one called &quot;ne_10m_geography_regions_polys.shp&quot;, although I can&#39;t vouch for the accuracy. I got it from </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><div class="gmail_default" style="font-size:small"><a href="http://www.naturalearthdata.com/downloads/10m-physical-vectors/">http://www.naturalearthdata.com/downloads/10m-physical-vectors/</a>               </div><div style="font-size:small"><br></div><div style="font-size:small">This shapefile contains a variable on the file called &quot;name&quot;, and this variable is an array of strings containing a region name.  If you search for &quot;DESERT&quot; you will find several names that match:</div><div style="font-size:small"><br></div><div style><div style>ncl_filedump -v name ne_10m_geography_regions_polys.shp | grep -i desert</div></div><div style="font-size:small"><br></div><div style><div style="font-size:small">Black Rock Desert</div><div style="font-size:small">Negev Desert</div><div style="font-size:small">Chalbi Desert</div><div style="font-size:small">Eastern Desert</div><div style="font-size:small">. . .</div><div style="font-size:small"><br></div><div style="font-size:small">These names can be used with the &quot;shapefile_mask_data&quot; function that is mentioned on this page:</div><div style="font-size:small"><br></div><div style><a href="http://www.ncl.ucar.edu/Applications/shapefiles.shtml">http://www.ncl.ucar.edu/Applications/shapefiles.shtml</a><br></div><div style><br></div><div style>Or you can simply fill all the desert areas in white, using gsn_add_polygon.</div><div style><br></div><div style>I&#39;ve attached two examples, using dummy data, to show both methods.  I&#39;ll make this an example on the shapefiles page too.</div><div style><br></div><div style>--Mary</div><div style><br></div></div></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 3, 2014 at 10:09 AM, Ashehad Ali <span dir="ltr">&lt;<a href="mailto:ashehad@gmail.com" target="_blank">ashehad@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>Dear ncl,<br></div><div><br></div>This might sound simple but am wondering if it&#39;s possible to mask out the non-vegetation areas such as desert regions from the land. <br><br></div>Thanks,<br>Ashehad<br><div><br><br></div></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>