Thursday 17 September 2015

arcgis desktop - Avoid NoData after Focal Statistics Majority


I am currently working with some classified land cover rasters (containing 8 land cover classes) in ArcGIS 10.0. I would like to make them look smoother and have therefore used the Focal Statistics Majority tool. This results in a raster which, at a first glance, looks great but when I look closer it is filled with thousands of NoData pixels at the boarders between the different land cover classes. I assume this happens because a cell will receive a NoData-value when there is more than one majority value within the neighbourhood. But I wonder if there is any way to avoid this by, for example, making it keep the original value instead of replacing it with NoData when it encounters the problem of having no majority value. Or is there any way to replace the NoData value with the original value after Focal Statistics? Or are there any other recognized, commonly used methods to replace missing data?


Would be very grateful for help!




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...