StaMPS Array Bounds

Hey guys, i have this error in the 5th step of StaMPS:

Index exceeds array bounds.

Error in llh2local (line 41)
dlambda=llh(1,z)-origin(1);

Error in ps_merge_patches (line 485)
xy=llh2local(lonlat’,ll0)*1000;

Error in stamps (line 473)
ps_merge_patches

merge_resample_size
Undefined function or variable ‘merge_resample_size’.

I change the ‘merge_resample_size’ = 0 but still not working. My study area is small (2x2 km) so i dont know if too small for the anaylis.

Did you do it like that or with setparm?

setparms(merge_resample_size’ , 0) and then StaMPS(1,8)

My fault, this is the error:

PS_MERGE_PATCHES: Starting
Merging patches…
GETPARM: merge_resample_size=0
GETPARM: merge_standard_dev=Inf
Processing PATCH_1
Index exceeds array bounds.

Error in llh2local (line 41)
dlambda=llh(1,z)-origin(1);

**Error in ps_merge_patches (line 485)
*xy=llh2local(lonlat’,ll0)1000;

Error in stamps (line 473)
ps_merge_patches

I have the same problem.