We should have this discussion in the gdal-dev list.<br>
<br>dhonjuh,<br><br>Try this at the command prompt; not the python command prompt.<br><span style="font-family:courier new,monospace">$ gdal_calc.py -A cknp_dem_30m.tif --calc A/2 --outfile t.tif</span><br><br>Also, make sure you did not make any inadvertent changes to the script.<br>
<br><div class="gmail_quote">On Fri, Jul 20, 2012 at 2:00 PM, dhonjuh <span dir="ltr"><<a href="mailto:dhonjuh@yahoo.com" target="_blank">dhonjuh@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
thanks for your reply. I tried as you suggested but still I am getting syntax<br>
error like<br>
<br>
>>> gdal_calc -A /cknp_dem_30m/.tif --calc A/2 --outfile t.tif<br>
SyntaxError: invalid syntax<br>
<br>
is there any lib missing? I hope.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/how-to-use-gdal-calc-py-tp4989528p4989563.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/how-to-use-gdal-calc-py-tp4989528p4989563.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the OSGeo Discuss mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Discuss mailing list<br>
<a href="mailto:Discuss@lists.osgeo.org">Discuss@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/discuss" target="_blank">http://lists.osgeo.org/mailman/listinfo/discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>