I am trying to produce raster outputs in ArcGIS for later use in MaxEnt to model species distributions, and want to produce variables with statistics on the percentage cover of different habitat polygons (i.e. woodland) and linear features (i.e treelines or hedgerows) at different spatial scales (e.g within a moving analysis window).

I have a fairly rudimentary understanding of ArcGIS. I feel that Focal Statistics tool should be able to achieve what i want if i convert my layer inputs to raster format, however percent is not listed as an option in the Statistics field.


1 Answer 1


Basically, the mean with focal stat will give you the percentage of cells in the neighbourhood if you apply it on binary (0/1) images.

This work because you can assume that the pixels have the same size.

For lines, you can also use the line density tool, which works directly from the vector polylines.

EDIT: based on the comments

The binary image can be created with raster calculator :

Con(IsNull("raster"), 0,1)
  • Thanks, and how would i create a binary raster with zero values rather than nodata?
    – Sean Davey
    Sep 2, 2014 at 20:30
  • Use Not IsNull(my raster).
    – whuber
    Sep 2, 2014 at 20:32
  • ~IsNull(my raster)
    – FelixIP
    Sep 3, 2014 at 1:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.