Regression in filter1d?

This is an excerpt from a script I’ve been using for years.
Last time I ran it was in September. No problems.

Just ran it again now, and suddenly I got an error (although the plot is apparently created without problems).

$ cat <<eof | awk '{print $1"T",$2}' | gmt filter1d  -Fm14 --TIME_UNIT=d -V -E --FORMAT_DATE_IN=dd.mm.yyyy
29.01.2015      75.1
30.01.2015      76
31.01.2015      75
01.02.2015      75.7
eof
filter1d [INFORMATION]: Processing input table data
filter1d [INFORMATION]: Reading Data Table from Stream 7f9abe9f1a80
filter1d [INFORMATION]: Writing Data Table to Standard Output stream
filter1d [INFORMATION]: Filter the data columns
gmt [ERROR]: Error! Time decreases at line # 3
	Use UNIX utility sort and then try again.

It complains that Time decreases at line # 3 - but no, it does not!?

cat <<eof | awk '{print $1"T",$2}' | gmt filter1d  -Fm14 --TIME_UNIT=d -V -E --FORMAT_DATE_IN=dd.mm.yyyy
29.01.2015      75.1
30.01.2015      76
31.01.2015      75
01.02.2015      75.7
eof
filter1d [INFORMATION]: Processing input table data
filter1d [INFORMATION]: Reading Data Table from Stream 7f243007eaa0
filter1d [INFORMATION]: Writing Data Table to Standard Output stream
filter1d [INFORMATION]: Filter the data columns
filter1d [INFORMATION]: Read 4 records from table 0, segment 0
filter1d [INFORMATION]: F width: 14 Resolution: 1 Start: 16464 Stop: 16467
2015-01-29T00:00:00	75.4
2015-01-30T00:00:00	75.4
2015-01-31T00:00:00	75.4
2015-02-01T00:00:00	75.4

works on gmt 6.3.0 and 6.4.0

Indeed it does.
Thanks @mkononets.

Using git bisect, the commit that introduced the error was this.

Fixed in #8233.

Yep, just added a PR on this

1 Like