Hi there, I tried to re-scale some of the values of a image just like this one here:
$ gdalinfo in.tif ... Minimum=2401.740, Maximum=2936.040, Mean=2685.227, StdDev=125.518 NoData Value=-3.4e+38 By using the -scale option in gdal_translate: $ gdal_translate in.tif out.tif -scale -3.8e+38 0 0 0 -a_nodata 0 Option -3.8e+38 incomplete, or not recognised. But it seems like the "-" was interpreted as the beginning of an option. That happens at that line of code here: http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdal_translate.cpp#L457 It looks like a bug but it might have some other implications that I can't see. Other parameters, like -a_ullr, doesn't have that problem because the values are not optional as in -scale. Any suggestion? Regards, Ivan _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev