Swapnil,
I'm not sure which shell script you are running, but in bash, you need to
have semicolons somewhere there.
The -scale option does a linear stretch of the pixel values. So, if you
have values ranging from 0 to 250, -scale 0 250 0 25 will do the job you
are trying to do.
Please add the
Dear All,
I would like to get your advise on running gdal_calc using shell.
I am finding it difficult, mostly because the command requires you to
define what -A stands for etc. which is quite different from
gdal_translate or such similar tools, so is the case with Raster
package in R.
I wish to
Swapnil,
You missed the --format option with gdal_calc. If you don't mention it, it
assumes the default format, GeoTiff.
Since the operation is simple, you should be able to do that using
gdal_translate using the -scale option. It also has the -projwin option to
select the extents.
On Fri, May
Hi Chaitanya,
Thank you for your response. I tried inserting the --format option. It
still gives me the same error.
I would be glad if you can describe the --scale function. It asks for
, [-scale [src_min src_max [dst_min dst_max]]]
How do you put a formula here? like raster/10
Thanks a ton! I