<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">If I understand your question correctly, I suggest you look at our ESMF regridding page:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Applications/ESMF.shtml">http://www.ncl.ucar.edu/Applications/ESMF.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">Example ESMF_regrid_23.ncl shows how to regrid MODIS data.</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">Our shapefiles example page shows how to mask data based on a shapefile outline:</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Applications/shapefiles.shtml">http://www.ncl.ucar.edu/Applications/shapefiles.shtml</a><br></div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">See example shapefiles_4.ncl for a sample masking script. There are many masking examples on that page. Use your browser search to look for the word &quot;mask&quot;.</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">--Mary</div><div class="gmail_default" style=""> </div><div class="gmail_default" style=""><br></div><div class="gmail_default" style=""><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 25, 2016 at 4:04 PM, 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">Dear ncl users, <br><br>I was wondering if there are some exemplary ncl scripts that shows how to make climatology grids, such as how the climatology grids for CLM gets constructed in the first place. For example, if we have the global climate data (in the h5 format) from MODIS (sinusoidal projection) with some resolution (say, 250m or 1km) and we&#39;d like to construct 50km x 50km resolution for only the states of USA, excluding Hawaii and Alaska. <br><font face="Tahoma" color="black" size="2"><span dir="ltr" style="font-size:10pt"></span></font><br>
<font size="2"><span style="font-size:10pt">I think it may require the 
center coordinates of each 50km pixel, as well as the upper left and 
lower right coordinates of each. Also, for each pixel, it might be 
useful to have which US States the pixel crosses. </span></font><font size="2"><span style="font-size:10pt"><font size="2"><span style="font-size:10pt">It may also require some shape files to extract data for only US. 
<br>
</span></font>

</span></font>
<font size="2"><span style="font-size:10pt"><br>
</span></font>
<font size="2"><span style="font-size:10pt">I&#39;d appreciate your thoughts. <br>
<br>
Best,<br>
</span></font>
<font size="2"><span style="font-size:10pt">Ashehad</span></font></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>