I am trying to automate the downsampling of elevation (and other) data using open source software at command line in an automated workflow via use of windows batch files. Currently the workflow uses only gdal utilities via osgeo4w.
I am looking for a command line resample method that will ignore the nodata that is present in the input tiff file during calculations. I need this so that output provides data values at dataset edges. Majority/mode and mean downsample options are preferred, rather than a simple nearest neighbour. Something similar to the arcgis block majority and aggregate tools would be nice.