[GRASS-git] [OSGeo/grass] 8d7d33: i.spectral: fix text output to write band values (...

Valyrian-Code noreply at github.com
Fri Jul 17 20:42:43 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 8d7d3316c40fe259fa66a959ade7bc3afd6a4235
      https://github.com/OSGeo/grass/commit/8d7d3316c40fe259fa66a959ade7bc3afd6a4235
  Author: Rajveer* <irajveer.bishnoi2310 at gmail.com>
  Date:   2026-07-18 (Sat, 18 Jul 2026)

  Changed paths:
    M scripts/i.spectral/i.spectral.py
    A scripts/i.spectral/tests/i_spectral_test.py

  Log Message:
  -----------
  i.spectral: fix text output to write band values (#7488)

write2textf iterated with 'for row in enumerate(what)', binding row to the (index, row) tuple, so the -t text output wrote a Python tuple repr (a redundant index plus the easting/northing/label columns) instead of the band values. Unpack the index and write row[3:], matching draw_gnuplot and draw_linegraph, via writelines.

Add a regression test for the -t output.



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