<div dir="ltr"><div style>--j,</div>I you wanted to use the gdal utility programs , you can use gdalinfo to get the extent of the first image and use gdal_translate -projwin with the coordinates you captured from the first command.  There are a couple of ways to pythonify those two commands or other python methods  into a single script for batch processing, see <a href="http://www.gdal.org/gdal_tutorial.html">http://www.gdal.org/gdal_tutorial.html</a><div>

<br><div><br></div><div style>Doug</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 23, 2013 at 12:47 PM, Jonathan Greenberg <span dir="ltr"><<a href="mailto:jgrn@illinois.edu" target="_blank">jgrn@illinois.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">GDALers:<br>
<br>
Is there a way to easily crop one image to the the extent of another image?<br>
<br>
--j<br>
<br>
--<br>
Jonathan A. Greenberg, PhD<br>
Assistant Professor<br>
Global Environmental Analysis and Remote Sensing (GEARS) Laboratory<br>
Department of Geography and Geographic Information Science<br>
University of Illinois at Urbana-Champaign<br>
607 South Mathews Avenue, MC 150<br>
Urbana, IL 61801<br>
Phone: 217-300-1924<br>
<a href="http://www.geog.illinois.edu/~jgrn/" target="_blank">http://www.geog.illinois.edu/~jgrn/</a><br>
AIM: jgrn307, MSN: <a href="mailto:jgrn307@hotmail.com">jgrn307@hotmail.com</a>, Gchat: jgrn307, Skype: jgrn3007<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Doug Newcomb</div><div>USFWS</div><div>Raleigh, NC</div><div>919-856-4520 ext. 14 <a href="mailto:doug_newcomb@fws.gov" target="_blank">doug_newcomb@fws.gov</a></div>

<div>---------------------------------------------------------------------------------------------------------</div><div>The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of the Interior.   Life is too short for undocumented, proprietary data formats.</div>


</div>