Repository navigation
t.rast.univar: Add range and correct cells values - #7529
Conversation
|
Nice. Thanks! The same applies also to t.rast3d.univar: I guess it is sufficient to update the tests there according to your changes... |
ninsbl
left a comment
There was a problem hiding this comment.
This looks good to me. @petrasovaa , what do you think about column names changing. Would that be considered part of the API? On the other hand, reason for the PR is a bug, so the change may be acceptable anyway?
I am for changing. I looked at r.univar again and here is r.univar with csv output: Notably, the order is different and there is actually not the total number of cells. So since we are changing this anyway, perhaps we should make it match completely (with the exception of the temporal-specific columns)? |
I think there are actually some inconsistencies in r.univar as well. For example, there is an |
That's true, but I don't want to change r.univar, one of the most widely used tools. I would just match the t.rast.univar with r.univar, matching the format outputs. |
Changes order in plain format, not backwards compatible. Also fixing the total number of cells.
Fixes #7525