[GRASS-git] [OSGeo/grass] 3ec2b1: r.univar: Add shell and CSV format (#5966)

Nishant Bansal noreply at github.com
Thu Jun 26 08:55:49 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 3ec2b13945d963db69544e3fc9339fbff72f33f3
      https://github.com/OSGeo/grass/commit/3ec2b13945d963db69544e3fc9339fbff72f33f3
  Author: Nishant Bansal <nishant.bansal.282003 at gmail.com>
  Date:   2025-06-26 (Thu, 26 Jun 2025)

  Changed paths:
    M imagery/i.eb.eta/testsuite/test_i_eb_eta.py
    M imagery/i.eb.netrad/testsuite/test_i_eb_netrad.py
    M imagery/i.evapo.mh/testsuite/test_i_evapo_mh.py
    M imagery/i.evapo.pm/testsuite/test_i_evapo_pm.py
    M imagery/i.evapo.pt/testsuite/test_i_evapo_pt.py
    M imagery/i.evapo.time/testsuite/test_i_evapo_time.py
    M raster/r.univar/globals.h
    M raster/r.univar/r.univar.md
    M raster/r.univar/r.univar_main.c
    M raster/r.univar/r3.univar_main.c
    M raster/r.univar/stats.c
    M raster/r.univar/testsuite/test_r_univar.py

  Log Message:
  -----------
  r.univar: Add shell and CSV format (#5966)

* Adds format=shell option; the -g flag is now deprecated.
* Adds format=csv option; the -t flag is now deprecated.
* Adds tests and updats the documentation.

The default separator for all formats is pipe, unless format=csv is specified in that case, it will be a comma. This is handled in the code. The default is not filled in the interface.

Remove flag -g when json format is used in tests.

Closes: #5824 

---------

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list