Dear John,<br><br>Thank you for the idea but I already have the shapefile of the "Study Area" and it seems that the output of your suggestion is shapefile.<br><br>Serge<br><br><br><br><div class="gmail_quote">On Fri, Aug 26, 2011 at 8:44 AM, Huddleston, John <span dir="ltr"><<a href="mailto:Huddleston@cira.colostate.edu">Huddleston@cira.colostate.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Serge<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">You can use ogr2ogr from <a href="http://www.gdal.org/ogr2ogr.html" target="_blank">http://www.gdal.org/ogr2ogr.html</a> <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">ogr2ogr -clipsrc clipping_polygon.shp output.shp input.shp<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">where clipping_polygon is a shapefile that defines the area you want to keep.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">John Huddleston<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] <b>On Behalf Of </b>Rafanoharana Serge Claudio<br>
<b>Sent:</b> Friday, August 26, 2011 8:54 AM<br><b>To:</b> GrADS Users Forum<br><b>Subject:</b> [gradsusr] Crop country boundary<u></u><u></u></span></p><div><div></div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Dear all,<br><br>I would like to ask if there is a way to crop the data to a specific area.<br>In GrADS, if we use 'set mpdset hires', we have the country boundary. However for my case I only need the study area (please refer to the attached file).<br>
<br>I found that <a href="http://www.diva-gis.org/datadown" target="_blank">http://www.diva-gis.org/datadown</a> provides Grid data. Can we use the data from this Website to crop it or...?<br><br>Thank you,<br clear="all">
<br>-- <br>Serge <u></u><u></u></p></div></div></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Serge<br>