Calculate spatial-temporal Moran's I and search for forest disturbance.
Moran.mfunction to calculate Moran's I of a given block.Blocking.mfunction to divide an image into equal blocks.natsort.m&natsortfiles.mfunction to sort filenames with numbers. Note: Path of dependencies should be included in MATLAB search folder.
STI_LowMemory.mlxCalculates the spatial temporal Moran's I. (See code for detailed formula.)DistMarker.mlxMark the time and place of disturbance. 1 for disturbance, 0 for no disturbance.StartEndMarker2.mlxFind the starting and ending date of each disturbance. Output image includesyearandmonthimages. Set output variables todoyfor duration. The default output result can't be used to calculate duration.Duration.mlxCalculates the duration (in days) of each disturbance.distMaxDuration.mlxMax 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.