[GRASS-dev] keep r.resample in GRASS 7?

shall we keep or remove r.resample in GRASS 7?

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

?,
Hamish

On Fri, Sep 26, 2008 at 8:34 AM, Hamish <hamish_b@yahoo.com> wrote:

shall we keep or remove r.resample in GRASS 7?

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.

We should also do several name changes, see
http://grass.osgeo.org/wiki/GRASS_7_ideas_collection#rename
http://grass.osgeo.org/wiki/GRASS_7_ideas_collection#rename_2

Markus

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@gclements.plus.com>