Ticket #511 (new enhancement)

Opened 5 years ago

Last modified 4 years ago

gdalwarp: suggestion for '-kr' (keep resolution) flag

Reported by: neteler Assigned to: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: minor Keywords:
Cc:

Description

Frank,

(as discussed via email)

It would be nice to have a flag in gdalwarp, e.g. called 
'-kr' (keep resolution) to maintain the original resolution of the warped
band. Of course there is -tr, but, say, for LANDSAT7 with 3 different 
resolutions (MODIS, ASTER etc the same), I have to check them manually
and then define them with -tr.

But with a '-kr' flag  I could simply loop over all channels in a shell
script and apply a datum transformation (so one step instead of
3 times resolution lookup + 3 times defining -tr).

Constraints: 
* Check that the units don't change, if yes, ignore (with warning) -kr flag
* others?

Best regards

 Markus Neteler

Change History

10/07/04 06:06:54 changed by neteler@itc.it

Frank,

on the list I have seen that you intend to revisit gdalwarp.
May I bring this (small?) wish to you attention, having
a flag to keep the original resolution when warping?

This would be most convenient for scripted looping over multiband
images of satellite data which come with different resolutions
(ASTER, LANDSAT, etc).

Best regards

 Markus