Ahmet, Have you looked at gdal_calc.py? http://svn.osgeo.org/gdal/trunk/gdal/swig/python/scripts/gdal_calc.py
Also in the python *samples *directory there is a val_repl.py (value replace) script. By switching the line below you can make it greater or less than a certain value. original val_repl.py: http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples "val_repl_greater.py" is simply the sample "val_repl.py" (from link above) with one line changed replace scanline = numpy.choose(numpy.equal(scanline,inNoData),(scanline,outNoData)) with scanline = numpy.choose(numpy.greater(scanline,inNoData),(scanline,outNoData)) good luck, Trent On Wed, Jul 10, 2013 at 12:20 PM, Ahmet Temiz <[email protected]>wrote: > > hello > > In a DEM file(tif) , how can I extract values bigger than 0 ? > > regards > -- > Ahmet Temiz > Jeoloji Müh. > Afet ve Acil Durum Yönetimi Başkanlığı > Planlama ve Zarar Azaltma Dairesi Başkanlığı > > > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
