Opened 8 years ago

Last modified 5 years ago

#3080 new enhancement

Add flag to ignore NULL values in r.cross

Reported by: pvanbosgeo Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: Default Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

Feature request: an option in r.cross to ignore raster cells where one or more input maps have NULL (no-data) value.

Change History (9)

comment:1 by annakrat, 8 years ago

Is this duplicate of #1674?

in reply to:  1 comment:2 by pvanbosgeo, 8 years ago

Replying to annakrat:

Is this duplicate of #1674?

I think the problem in ticket #1674 was a bug, which I think has been resolved since?

This ticket is more an enhancement request. The current behaviour of r.cross seems to be that NULL values are treated as a category. If that is indeed the correct behaviour, I would suggest to add a flag similar to the -z flag, but for NULL instead of 0 (zero) values. So, the description of this flag (let's use the -n flag)

With the -n flag NULL values are not crossed. This means that if a NULL value occurs in any input data layer, the combination is NULL (no category) in the resulting map layer, even if other data layers contain non-NULL data.

I would in fact have expected the above (an output layer is NULL where one or more layers have a NULL value) to be the default / more logical behaviour.

comment:3 by martinl, 8 years ago

Milestone: 7.0.57.3.0

comment:4 by martinl, 8 years ago

Milestone: 7.3.07.4.0

Milestone renamed

comment:5 by neteler, 6 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:6 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:7 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:8 by martinl, 5 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:9 by martinl, 5 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.