Running the 'DarkSubtractionCorrection' task in an API on reflectance values from a calibrated Worldview 2 data where the image boundary data has a pixel state of 1 are being calculated as negative values on the output raster. How do I stop this? Here is the section of code doing the calculation (with forcing 'data ignore value' param). ;***Add data ignore value to the metadata **** IF (metadata.HasTag ('data ignore value')) THEN BEGIN metadata.UpdateItem, 'data ignore value', 0. ENDIF ELSE BEGIN metadata.AddItem, 'data ignore value', 0. ENDELSE RS_Task = ENVITASK('DarkSubtractionCorrection') ; ; props = RS_Task.parameterNames() ; print, props ; Define inputs RS_Task.INPUT_RASTER = TOARRas RS_Task.VALUES = scats Rs_Task.OUTPUT_RASTER_URI = Rrs_out RS_Task.Execute
|