[GRASS-dev] keep r.resample in GRASS 7?
Glynn Clements
glynn at gclements.plus.com
Fri Sep 26 08:14:22 EDT 2008
Markus Neteler wrote:
> > Its functionality is replaced by "r.resamp.interp method=nearest", or
> > if you wish to match old r.resample method exactly*: "r.mapcalc new=old".
> >
> > [*] IIRC
>
> I suggest to remove it.
Or replace it with a script:
#!/usr/bin/env python
# [option declarations snipped]
import grass
def main():
input = options['input']
output = options['output']
grass.run_command('r.mapcalc', expr = '"%s" = "%s"' % (input, output))
if __name__ == "__main__":
options, flags = grass.parser()
main()
OTOH, it may be worth keeping simply as an example of a raster module.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list