Calculate spatial-temporal Moran's I and search for forest disturbance.
Moran.m
function to calculate Moran's I of a given block.Blocking.m
function to divide an image into equal blocks.natsort.m
&natsortfiles.m
function to sort filenames with numbers. Note: Path of dependencies should be included in MATLAB search folder.
STI_LowMemory.mlx
Calculates the spatial temporal Moran's I. (See code for detailed formula.)DistMarker.mlx
Mark the time and place of disturbance. 1 for disturbance, 0 for no disturbance.StartEndMarker2.mlx
Find the starting and ending date of each disturbance. Output image includesyear
andmonth
images. Set output variables todoy
for duration. The default output result can't be used to calculate duration.Duration.mlx
Calculates the duration (in days) of each disturbance.distMaxDuration.mlx
Max and min stats of forest disturbance duration.
Detailed documentations are in *.mlx
scripts. They will guide you what to input and how to interpret results.