Details Ticket 248


Comment | Reply | Take | Open


Serial Number 248
Subject r.recode: NULL is not supported
Area wish
Queue grass
Requestors neteler@geog.uni-hannover.de
Owner none
Status resolved
Last User Contact Wed May 2 22:49:41 2001 (7 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Mon May 7 11:00:52 2001 (7 yr ago)
Created Wed May 2 13:50:23 2001 (7 yr ago)

Transaction History Ticket 248


Wed, May 2 2001 13:50:23    Request created by mneteler  
Subject: r.recode: NULL is not supported

NULL is not supported (compare r.reclass how this could be done)
Wed, May 2 2001 16:17:13    Mail sent by guest  
It appears that NULL is supported on r.recode? Values outside of the reclass
range should be assigned to NULL.

There is a problem with r.recode in that the range / stats are not updated.
This results in erroneous raster range. Running r.support -r fixes this
problem. Based on this r.recode should have G_update_range, etc added to write
out the correct raster range.
Wed, May 2 2001 16:47:55    Mail sent by guest  
I take it back. 

NULL's are written as NULL, but data outside the reclass is written as zero.
I have added range support function (borrowed from r.support) to the source
and will try to track down the reclass / NULL problem. I have also added the
a
-d flag to force output to force output to DCELL_TYPE. 

When the NULL problem is fixed I will apply to CVS.
Wed, May 2 2001 19:29:50    Mail sent by guest  
I take it back. 

NULL's are written as NULL, but data outside the reclass is written as zero.
I have added range support function (borrowed from r.support) to the source
and will try to track down the reclass / NULL problem. I have also added the
a
-d flag to force output to force output to DCELL_TYPE. 

When the NULL problem is fixed I will apply to CVS.
Wed, May 2 2001 22:49:41    Mail sent by guest  
Finally found the source of my confusion.

The problem was not with r.recode but with the GIS library. The definition of
the G_set_null... functions has changed recently in the GIS library and header
files. Therefore NULL support with r.recode should work with the latest source
from CVS.  If you are still seeing zeroes in unclassed areas, upgrade to the
latest library.

I have also applied to CVS a requested change / flag (-d) to force reclass
output to type DCELL.

Mon, May 7 2001 11:00:52    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request