[Gdal-dev] gdal_warp question

Christopher Condit condit at sdsc.edu
Wed Apr 26 19:36:38 EDT 2006


Hi list-
I'm attempting to use gdal_warp to interpolate and resample an ArcInfo
ASCII Grid.  I'm getting strange negative values in the output and I'm
curious as to why that is.

gdal_translate.exe somedodssource[y][x] -a_srs EPSG:4326 -a_nodata -1
-of AAIGrid out.txt
gdalwarp -ot Float32 -wt Float32 -te -179.5 -89.5 179.5 89.5 -tr 1 1
-srcnodata -1 -of GTiff out.txt test.tif

I'm trying to regrid this data to 1 degree cells centered on the half
degree.  I do get output - but the range is way off. There are many
negative values in the output. The range of values in my input ascii
file is 0.0 to 2736477.5.  They are floats.

What's going on?

Thanks!

Chris




More information about the Gdal-dev mailing list