Skip to content

[Bug] columns filter for t.rast.list fails with method=gran #2205

@chaedri

Description

@chaedri

Describe the bug
When using t.rast.list with the method=gran option, the columns filter does not work. Instead of filtering the table to just the columns selected, it returns the whole table, unfiltered.

To Reproduce
Steps to reproduce the behavior:

  1. Use sample temporal dataset from: http://ncsu-geoforall-lab.github.io/grass-temporal-workshop/
  2. Run t.create output=NagsHead_99_08 type=strds temporaltype=relative title="Nags Head elevation series" description="from 1999 to 2008 with gaps"
  3. Register rasters NH_1999_1m, NH_2001_1m, NH_2004_1m, NH_2005_1m, NH_2007_1m and NH_2008_1m to NagsHead_99_08, the new space time dataset, with unit of years.
  4. Run t.rast.list input=NagsHead_99_08 columns=name to see expected behavior of columns filter
  5. See expected output:
name
NH_1999_1m
NH_2001_1m
NH_2004_1m
NH_2005_1m
NH_2007_1m
NH_2008_1m
  1. Run same as above but with method=gran to see unexpected behavior (t.rast.list input=NagsHead_99_08 method=gran columns=name):
id|name|mapset|start_time|end_time|interval_length|distance_from_begin
NH_1999_1m@NagsHead_series|NH_1999_1m|NagsHead_series|1999|2000|1|0
None|None|None|2000|2001|1|1
NH_2001_1m@NagsHead_series|NH_2001_1m|NagsHead_series|2001|2002|1|2
None|None|None|2002|2003|1|3
None|None|None|2003|2004|1|4
NH_2004_1m@NagsHead_series|NH_2004_1m|NagsHead_series|2004|2005|1|5
NH_2005_1m@NagsHead_series|NH_2005_1m|NagsHead_series|2005|2006|1|6
None|None|None|2006|2007|1|7
NH_2007_1m@NagsHead_series|NH_2007_1m|NagsHead_series|2007|2008|1|8
NH_2008_1m@NagsHead_series|NH_2008_1m|NagsHead_series|2008|2009|1|9

Expected behavior
Expected t.rast.list to return only name column.

System description (please complete the following information):

  • Operating System: Windows and Linux; haven't tested on Mac
  • GRASS GIS version: 8.0 and 7.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtemporalRelated to temporal data processing

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions