AnsweredAssumed Answered

Field calculator returns null fields?

Question asked by Zemken12_1 on Jan 2, 2016
Latest reply on Jan 2, 2016 by Zemken12_1

I'm using the field calculator to reclassify a raster table. My goal is to reclassify all negative values to zero, and keep all other original values.  See attached photo.


I'm running the following block of code:


def Reclass(corrected_value):

    if Value <= 0:

        return 0

    elif Value >= 1:

        return Value



followed by:

Reclass( !corrected_value!) 



Executing the code returns no errors, but values remain as NULL after processing. What gives?code_block.PNG