<div dir="ltr">anyone have any suggestions?! I'm at a complete loss how to troubleshoot.<div><br></div></div><div class="gmail_extra"><br clear="all"><div><div>Dominik Schneider</div><div><div>o 303.735.6296 | c 518.956.3978 </div>

<div><br></div></div></div>
<br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 10:52 AM, Dominik Schneider <span dir="ltr"><<a href="mailto:dominik.schneider@colorado.edu" target="_blank">dominik.schneider@colorado.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Hi, </span><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">

I am trying to run:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">
gdal_merge.py -init -9999 -n 2001 -o MOD09GA.A2012001.h08v05.005.NRTsnow_fraction.tif.1 MOD09GA.A2012001.h08v05.005.NRTsnow_fraction.tif</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div>


<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">The Error:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div>Traceback (most recent call last):</div><div>  File "/Library/Frameworks/GDAL.framework/Programs/gdal_merge.py", line 36, in <module></div>


<div>    import gdal</div><div>  File "/usr/local/lib/python2.7/site-packages/gdal.py", line 2, in <module></div><div>    from osgeo.gdal import deprecation_warn</div><div>  File "/usr/local/lib/python2.7/site-packages/osgeo/__init__.py", line 21, in <module></div>


<div>    _gdal = swig_import_helper()</div><div>  File "/usr/local/lib/python2.7/site-packages/osgeo/__init__.py", line 17, in swig_import_helper</div><div>    _mod = imp.load_module('_gdal', fp, pathname, description)</div>


<div>ImportError: dlopen(/usr/local/lib/python2.7/site-packages/osgeo/_gdal.so, 2): Library not loaded: libpng15.15.dylib</div><div>  Referenced from: /usr/local/Cellar/gdal/1.10.0/lib/libgdal.1.dylib</div><div>  Reason: image not found</div>


</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Gdal is here:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">


<div>> which gdal_merge.py</div><div>/Library/Frameworks/GDAL.framework/Programs/gdal_merge.py</div></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">


I'm completely new gdal but am guessing i've got some confusion between different versions of gdal and python.  I have rgdal installed so at some point in the past I probably installed gdal too? Today I installed gdal with homebrew and also tried the binary from <a href="http://www.kyngchaos.com/software:frameworks" target="_blank">http://www.kyngchaos.com/software:frameworks</a></div>


<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">For python I have the system default (2.7) on osx.7.5 and the anaconda installation.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">


<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">I should also say, if I load python I am unable to import gdal:</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">


> python</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><div><font face="arial, sans-serif">Python 2.7.4 |Anaconda 1.5.1 (x86_64)| (default, May  9 2013, 12:12:00) </font></div><div><font face="arial, sans-serif">[GCC 4.0.1 (Apple Inc. build 5493)] on darwin</font></div>


<div><font face="arial, sans-serif">Type "help", "copyright", "credits" or "license" for more information.</font></div></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">


>>> from osgeo import gdal</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Traceback (most recent call last):</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">


  File "<stdin>", line 1, in <module></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">  File "/usr/local/lib/python2.7/site-packages/osgeo/__init__.py", line 21, in <module></div>


<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">    _gdal = swig_import_helper()</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">  File "/usr/local/lib/python2.7/site-packages/osgeo/__init__.py", line 17, in swig_import_helper</div>


<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">    _mod = imp.load_module('_gdal', fp, pathname, description)</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">


ImportError: dlopen(/usr/local/lib/python2.7/site-packages/osgeo/_gdal.so, 2): Library not loaded: libpng15.15.dylib</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">  Referenced from: /usr/local/Cellar/gdal/1.10.0/lib/libgdal.1.dylib</div>


<div style="font-family:arial,sans-serif;font-size:12.727272033691406px">  Reason: image not found</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">


<br></div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">any help would be appreciated.</div><div style="font-family:arial,sans-serif;font-size:12.727272033691406px">Thanks</div>
</div>
</div></div></blockquote></div><br></div>