REM  IDRISI for Windows Macro for Tutorial Exercise 7

REM  Create Boolean Image for Slopes < 2.5%
surface x 1 relief slopes # d
reclass x i slopes slopebl 2 1 0 2.5 0 2.5 999 -9999

REM  Create Boolean Image for 250 m Buffer reservoirs
reclass x i landuse reserv 2 0 0 2 1 2 2 0 3 99 -9999
distance x reserv resdist
reclass x i resdist bufferbl 2 0 0 250 1 250 99999 -9999

REM Create Boolean Image for Forested Areas
reclass x i landuse forestbl 2 0 0 9 1 9 11 0 11 99 -9999

REM Combine Boolean Images
overlay x 3 slopebl bufferbl tmp
overlay x 3 tmp forestbl combined

REM Isolate Suitable Plots > 10 Hectares
group x combined y groups
area x groups 1 2 grparea
overlay x 3 combined grparea sitearea
reclass x i sitearea suitab2 2 0 0 10 1 10 99999 -9999