Error in StaMPS patch merging (Step 5)

If someone could help me it would be most appreciated. I am trying to process SBAS using 6 patches and I can’t get past step 5 despite having plenty of PS. It gives me the following error:

Index exceeds the number of array elements (0).
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 478)
            ps_merge_patches 

Here is a copy of the log in case it helps:

>> stamps(1,8)

STAMPS: ########################################
STAMPS: ####### StaMPS/MTI Version 4.0b6 #######
STAMPS: #######  Beta version, Jun 2018  #######
STAMPS: ########################################

ans =
     0
STAMPS: Will process patch subdirectories

STAMPS: ########################################
STAMPS: ################ Step 1 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_1

SETPARM: heading = -166.5177
SETPARM: lambda = 0.055466
Rotating by -13.4823 degrees

STAMPS: ########################################
STAMPS: ################ Step 2 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_1

PS_EST_GAMMA_QUICK: Starting
PS_EST_GAMMA_QUICK: Estimating gamma for candidate pixels
GETPARM: filter_grid_size=50 
GETPARM: filter_weighting='P-square'
GETPARM: clap_win=32 
GETPARM: clap_low_pass_wavelength=800 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: max_topo_err=20 
GETPARM: lambda=0.0554658 
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
GETPARM: small_baseline_flag='y'
Found look angle file 
PS_EST_GAMMA_QUICK: n_trial_wraps=0.206726
PS_EST_GAMMA_QUICK: Initialising random distribution...
PS_EST_GAMMA_QUICK: 2560395 PS candidates to process
PS_EST_GAMMA_QUICK: iteration #1
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=0.337502
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #2
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.294463
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #3
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.020556
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: Finished

STAMPS: ########################################
STAMPS: ################ Step 3 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_1

PS_SELECT: Starting
PS_SELECT: Selecting stable-phase pixels...
GETPARM: slc_osf=1 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: clap_win=32 
GETPARM: select_method='DENSITY'
GETPARM: density_rand=2 
GETPARM: gamma_stdev_reject=0 
GETPARM: small_baseline_flag='y'
GETPARM: drop_ifg_index= 
PS_SELECT: Initial gamma threshold: 0.666 at D_A=-0.01 to 0.723 at D_A=0.78
PS_SELECT: 120502 PS selected initially
PS_SELECT: 10000 patches re-estimated
PS_SELECT: 20000 patches re-estimated
PS_SELECT: 30000 patches re-estimated
PS_SELECT: 40000 patches re-estimated
PS_SELECT: 50000 patches re-estimated
PS_SELECT: 60000 patches re-estimated
PS_SELECT: 70000 patches re-estimated
PS_SELECT: 80000 patches re-estimated
PS_SELECT: 90000 patches re-estimated
PS_SELECT: 100000 patches re-estimated
PS_SELECT: 110000 patches re-estimated
PS_SELECT: 120000 patches re-estimated
PS_SELECT: 10000 coherences re-estimated
PS_SELECT: 20000 coherences re-estimated
PS_SELECT: 30000 coherences re-estimated
PS_SELECT: 40000 coherences re-estimated
PS_SELECT: 50000 coherences re-estimated
PS_SELECT: 60000 coherences re-estimated
PS_SELECT: 70000 coherences re-estimated
PS_SELECT: 80000 coherences re-estimated
PS_SELECT: 90000 coherences re-estimated
PS_SELECT: 100000 coherences re-estimated
PS_SELECT: 110000 coherences re-estimated
PS_SELECT: 120000 coherences re-estimated
PS_SELECT: Reestimation gamma threshold: 0.667 at D_A=-0.01 to 0.715 at D_A=0.78
PS_SELECT: 115345 ps selected after re-estimation of coherence
PS_SELECT: Finished

STAMPS: ########################################
STAMPS: ################ Step 4 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_1

PS_WEED: Starting
PS_WEED: Weeding selected pixels...
GETPARM: weed_time_win=730 
GETPARM: weed_standard_dev=Inf 
GETPARM: weed_max_noise=Inf 
GETPARM: weed_zero_elevation='n'
GETPARM: weed_neighbours='n'
GETPARM: small_baseline_flag='y'
PS_WEED: 115345 low D_A PS, 0 high D_A PS
psver currently: 1
psver now set to: 2
PS_WEED: Finished

STAMPS: ########################################
STAMPS: ################ Step 5 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_1

PS_CORRECT_PHASE: Starting
Correcting phase for look angle error...
GETPARM: small_baseline_flag='y'
PS_CORRECT_PHASE: Finished

STAMPS: ########################################
STAMPS: ################ Step 1 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_2

SETPARM: heading = -166.5177
SETPARM: lambda = 0.055466
Rotating by -13.4823 degrees

STAMPS: ########################################
STAMPS: ################ Step 2 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_2

PS_EST_GAMMA_QUICK: Starting
PS_EST_GAMMA_QUICK: Estimating gamma for candidate pixels
GETPARM: filter_grid_size=50 
GETPARM: filter_weighting='P-square'
GETPARM: clap_win=32 
GETPARM: clap_low_pass_wavelength=800 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: max_topo_err=20 
GETPARM: lambda=0.0554658 
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
GETPARM: small_baseline_flag='y'
Found look angle file 
PS_EST_GAMMA_QUICK: n_trial_wraps=0.206715
PS_EST_GAMMA_QUICK: Initialising random distribution...
PS_EST_GAMMA_QUICK: 2878512 PS candidates to process
PS_EST_GAMMA_QUICK: iteration #1
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: 2600000 PS processed
PS_EST_GAMMA_QUICK: 2700000 PS processed
PS_EST_GAMMA_QUICK: 2800000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=0.372725
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #2
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: 2600000 PS processed
PS_EST_GAMMA_QUICK: 2700000 PS processed
PS_EST_GAMMA_QUICK: 2800000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.337947
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #3
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: 2600000 PS processed
PS_EST_GAMMA_QUICK: 2700000 PS processed
PS_EST_GAMMA_QUICK: 2800000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.019638
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: Finished

STAMPS: ########################################
STAMPS: ################ Step 3 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_2

PS_SELECT: Starting
PS_SELECT: Selecting stable-phase pixels...
GETPARM: slc_osf=1 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: clap_win=32 
GETPARM: select_method='DENSITY'
GETPARM: density_rand=2 
GETPARM: gamma_stdev_reject=0 
GETPARM: small_baseline_flag='y'
GETPARM: drop_ifg_index= 
PS_SELECT: Initial gamma threshold: 0.651 at D_A=-0.01 to 0.727 at D_A=0.74
PS_SELECT: 196301 PS selected initially
PS_SELECT: 10000 patches re-estimated
PS_SELECT: 20000 patches re-estimated
PS_SELECT: 30000 patches re-estimated
PS_SELECT: 40000 patches re-estimated
PS_SELECT: 50000 patches re-estimated
PS_SELECT: 60000 patches re-estimated
PS_SELECT: 70000 patches re-estimated
PS_SELECT: 80000 patches re-estimated
PS_SELECT: 90000 patches re-estimated
PS_SELECT: 100000 patches re-estimated
PS_SELECT: 110000 patches re-estimated
PS_SELECT: 120000 patches re-estimated
PS_SELECT: 130000 patches re-estimated
PS_SELECT: 140000 patches re-estimated
PS_SELECT: 150000 patches re-estimated
PS_SELECT: 160000 patches re-estimated
PS_SELECT: 170000 patches re-estimated
PS_SELECT: 180000 patches re-estimated
PS_SELECT: 190000 patches re-estimated
PS_SELECT: 10000 coherences re-estimated
PS_SELECT: 20000 coherences re-estimated
PS_SELECT: 30000 coherences re-estimated
PS_SELECT: 40000 coherences re-estimated
PS_SELECT: 50000 coherences re-estimated
PS_SELECT: 60000 coherences re-estimated
PS_SELECT: 70000 coherences re-estimated
PS_SELECT: 80000 coherences re-estimated
PS_SELECT: 90000 coherences re-estimated
PS_SELECT: 100000 coherences re-estimated
PS_SELECT: 110000 coherences re-estimated
PS_SELECT: 120000 coherences re-estimated
PS_SELECT: 130000 coherences re-estimated
PS_SELECT: 140000 coherences re-estimated
PS_SELECT: 150000 coherences re-estimated
PS_SELECT: 160000 coherences re-estimated
PS_SELECT: 170000 coherences re-estimated
PS_SELECT: 180000 coherences re-estimated
PS_SELECT: 190000 coherences re-estimated
PS_SELECT: Reestimation gamma threshold: 0.657 at D_A=-0.01 to 0.719 at D_A=0.74
PS_SELECT: 189600 ps selected after re-estimation of coherence
PS_SELECT: Finished

STAMPS: ########################################
STAMPS: ################ Step 4 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_2

PS_WEED: Starting
PS_WEED: Weeding selected pixels...
GETPARM: weed_time_win=730 
GETPARM: weed_standard_dev=Inf 
GETPARM: weed_max_noise=Inf 
GETPARM: weed_zero_elevation='n'
GETPARM: weed_neighbours='n'
GETPARM: small_baseline_flag='y'
PS_WEED: 189600 low D_A PS, 0 high D_A PS
psver currently: 1
psver now set to: 2
PS_WEED: Finished

STAMPS: ########################################
STAMPS: ################ Step 5 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_2

PS_CORRECT_PHASE: Starting
Correcting phase for look angle error...
GETPARM: small_baseline_flag='y'
PS_CORRECT_PHASE: Finished

STAMPS: ########################################
STAMPS: ################ Step 1 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_3

SETPARM: heading = -166.5177
SETPARM: lambda = 0.055466
Rotating by -13.4823 degrees

STAMPS: ########################################
STAMPS: ################ Step 2 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_3

PS_EST_GAMMA_QUICK: Starting
PS_EST_GAMMA_QUICK: Estimating gamma for candidate pixels
GETPARM: filter_grid_size=50 
GETPARM: filter_weighting='P-square'
GETPARM: clap_win=32 
GETPARM: clap_low_pass_wavelength=800 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: max_topo_err=20 
GETPARM: lambda=0.0554658 
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
GETPARM: small_baseline_flag='y'
Found look angle file 
PS_EST_GAMMA_QUICK: n_trial_wraps=0.206725
PS_EST_GAMMA_QUICK: Initialising random distribution...
PS_EST_GAMMA_QUICK: 2296734 PS candidates to process
PS_EST_GAMMA_QUICK: iteration #1
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=0.341106
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #2
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.299900
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #3
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.020600
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: Finished

STAMPS: ########################################
STAMPS: ################ Step 3 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_3

PS_SELECT: Starting
PS_SELECT: Selecting stable-phase pixels...
GETPARM: slc_osf=1 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: clap_win=32 
GETPARM: select_method='DENSITY'
GETPARM: density_rand=2 
GETPARM: gamma_stdev_reject=0 
GETPARM: small_baseline_flag='y'
GETPARM: drop_ifg_index= 
PS_SELECT: Initial gamma threshold: 0.656 at D_A=-0.04 to 0.717 at D_A=0.76
PS_SELECT: 112970 PS selected initially
PS_SELECT: 10000 patches re-estimated
PS_SELECT: 20000 patches re-estimated
PS_SELECT: 30000 patches re-estimated
PS_SELECT: 40000 patches re-estimated
PS_SELECT: 50000 patches re-estimated
PS_SELECT: 60000 patches re-estimated
PS_SELECT: 70000 patches re-estimated
PS_SELECT: 80000 patches re-estimated
PS_SELECT: 90000 patches re-estimated
PS_SELECT: 100000 patches re-estimated
PS_SELECT: 110000 patches re-estimated
PS_SELECT: 10000 coherences re-estimated
PS_SELECT: 20000 coherences re-estimated
PS_SELECT: 30000 coherences re-estimated
PS_SELECT: 40000 coherences re-estimated
PS_SELECT: 50000 coherences re-estimated
PS_SELECT: 60000 coherences re-estimated
PS_SELECT: 70000 coherences re-estimated
PS_SELECT: 80000 coherences re-estimated
PS_SELECT: 90000 coherences re-estimated
PS_SELECT: 100000 coherences re-estimated
PS_SELECT: 110000 coherences re-estimated
PS_SELECT: Reestimation gamma threshold: 0.663 at D_A=-0.04 to 0.708 at D_A=0.76
PS_SELECT: 107228 ps selected after re-estimation of coherence
PS_SELECT: Finished

STAMPS: ########################################
STAMPS: ################ Step 4 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_3

PS_WEED: Starting
PS_WEED: Weeding selected pixels...
GETPARM: weed_time_win=730 
GETPARM: weed_standard_dev=Inf 
GETPARM: weed_max_noise=Inf 
GETPARM: weed_zero_elevation='n'
GETPARM: weed_neighbours='n'
GETPARM: small_baseline_flag='y'
PS_WEED: 107228 low D_A PS, 0 high D_A PS
psver currently: 1
psver now set to: 2
PS_WEED: Finished

STAMPS: ########################################
STAMPS: ################ Step 5 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_3

PS_CORRECT_PHASE: Starting
Correcting phase for look angle error...
GETPARM: small_baseline_flag='y'
PS_CORRECT_PHASE: Finished

STAMPS: ########################################
STAMPS: ################ Step 1 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_4

SETPARM: heading = -166.5177
SETPARM: lambda = 0.055466
Rotating by -13.4823 degrees

STAMPS: ########################################
STAMPS: ################ Step 2 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_4

PS_EST_GAMMA_QUICK: Starting
PS_EST_GAMMA_QUICK: Estimating gamma for candidate pixels
GETPARM: filter_grid_size=50 
GETPARM: filter_weighting='P-square'
GETPARM: clap_win=32 
GETPARM: clap_low_pass_wavelength=800 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: max_topo_err=20 
GETPARM: lambda=0.0554658 
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
GETPARM: small_baseline_flag='y'
Found look angle file 
PS_EST_GAMMA_QUICK: n_trial_wraps=0.206720
PS_EST_GAMMA_QUICK: Initialising random distribution...
PS_EST_GAMMA_QUICK: 2732902 PS candidates to process
PS_EST_GAMMA_QUICK: iteration #1
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: 2600000 PS processed
PS_EST_GAMMA_QUICK: 2700000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=0.325277
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #2
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: 2600000 PS processed
PS_EST_GAMMA_QUICK: 2700000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.282009
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #3
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: 2600000 PS processed
PS_EST_GAMMA_QUICK: 2700000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.022861
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: Finished

STAMPS: ########################################
STAMPS: ################ Step 3 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_4

PS_SELECT: Starting
PS_SELECT: Selecting stable-phase pixels...
GETPARM: slc_osf=1 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: clap_win=32 
GETPARM: select_method='DENSITY'
GETPARM: density_rand=2 
GETPARM: gamma_stdev_reject=0 
GETPARM: small_baseline_flag='y'
GETPARM: drop_ifg_index= 
PS_SELECT: Initial gamma threshold: 0.680 at D_A=0.00 to 0.722 at D_A=0.73
PS_SELECT: 115661 PS selected initially
PS_SELECT: 10000 patches re-estimated
PS_SELECT: 20000 patches re-estimated
PS_SELECT: 30000 patches re-estimated
PS_SELECT: 40000 patches re-estimated
PS_SELECT: 50000 patches re-estimated
PS_SELECT: 60000 patches re-estimated
PS_SELECT: 70000 patches re-estimated
PS_SELECT: 80000 patches re-estimated
PS_SELECT: 90000 patches re-estimated
PS_SELECT: 100000 patches re-estimated
PS_SELECT: 110000 patches re-estimated
PS_SELECT: 10000 coherences re-estimated
PS_SELECT: 20000 coherences re-estimated
PS_SELECT: 30000 coherences re-estimated
PS_SELECT: 40000 coherences re-estimated
PS_SELECT: 50000 coherences re-estimated
PS_SELECT: 60000 coherences re-estimated
PS_SELECT: 70000 coherences re-estimated
PS_SELECT: 80000 coherences re-estimated
PS_SELECT: 90000 coherences re-estimated
PS_SELECT: 100000 coherences re-estimated
PS_SELECT: 110000 coherences re-estimated
PS_SELECT: Reestimation gamma threshold: 0.682 at D_A=0.00 to 0.717 at D_A=0.73
PS_SELECT: 110190 ps selected after re-estimation of coherence
PS_SELECT: Finished

STAMPS: ########################################
STAMPS: ################ Step 4 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_4

PS_WEED: Starting
PS_WEED: Weeding selected pixels...
GETPARM: weed_time_win=730 
GETPARM: weed_standard_dev=Inf 
GETPARM: weed_max_noise=Inf 
GETPARM: weed_zero_elevation='n'
GETPARM: weed_neighbours='n'
GETPARM: small_baseline_flag='y'
PS_WEED: 110190 low D_A PS, 0 high D_A PS
psver currently: 1
psver now set to: 2
PS_WEED: Finished

STAMPS: ########################################
STAMPS: ################ Step 5 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_4

PS_CORRECT_PHASE: Starting
Correcting phase for look angle error...
GETPARM: small_baseline_flag='y'
PS_CORRECT_PHASE: Finished

STAMPS: ########################################
STAMPS: ################ Step 1 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_5

SETPARM: heading = -166.5177
SETPARM: lambda = 0.055466
Rotating by -13.4823 degrees

STAMPS: ########################################
STAMPS: ################ Step 2 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_5

PS_EST_GAMMA_QUICK: Starting
PS_EST_GAMMA_QUICK: Estimating gamma for candidate pixels
GETPARM: filter_grid_size=50 
GETPARM: filter_weighting='P-square'
GETPARM: clap_win=32 
GETPARM: clap_low_pass_wavelength=800 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: max_topo_err=20 
GETPARM: lambda=0.0554658 
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
GETPARM: small_baseline_flag='y'
Found look angle file 
PS_EST_GAMMA_QUICK: n_trial_wraps=0.206717
PS_EST_GAMMA_QUICK: Initialising random distribution...
PS_EST_GAMMA_QUICK: 2514355 PS candidates to process
PS_EST_GAMMA_QUICK: iteration #1
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=0.394050
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #2
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.359437
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #3
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.018795
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: Finished

STAMPS: ########################################
STAMPS: ################ Step 3 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_5

PS_SELECT: Starting
PS_SELECT: Selecting stable-phase pixels...
GETPARM: slc_osf=1 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: clap_win=32 
GETPARM: select_method='DENSITY'
GETPARM: density_rand=2 
GETPARM: gamma_stdev_reject=0 
GETPARM: small_baseline_flag='y'
GETPARM: drop_ifg_index= 
PS_SELECT: Initial gamma threshold: 0.620 at D_A=-0.00 to 0.736 at D_A=0.75
PS_SELECT: 234128 PS selected initially
PS_SELECT: 10000 patches re-estimated
PS_SELECT: 20000 patches re-estimated
PS_SELECT: 30000 patches re-estimated
PS_SELECT: 40000 patches re-estimated
PS_SELECT: 50000 patches re-estimated
PS_SELECT: 60000 patches re-estimated
PS_SELECT: 70000 patches re-estimated
PS_SELECT: 80000 patches re-estimated
PS_SELECT: 90000 patches re-estimated
PS_SELECT: 100000 patches re-estimated
PS_SELECT: 110000 patches re-estimated
PS_SELECT: 120000 patches re-estimated
PS_SELECT: 130000 patches re-estimated
PS_SELECT: 140000 patches re-estimated
PS_SELECT: 150000 patches re-estimated
PS_SELECT: 160000 patches re-estimated
PS_SELECT: 170000 patches re-estimated
PS_SELECT: 180000 patches re-estimated
PS_SELECT: 190000 patches re-estimated
PS_SELECT: 200000 patches re-estimated
PS_SELECT: 210000 patches re-estimated
PS_SELECT: 220000 patches re-estimated
PS_SELECT: 230000 patches re-estimated
PS_SELECT: 10000 coherences re-estimated
PS_SELECT: 20000 coherences re-estimated
PS_SELECT: 30000 coherences re-estimated
PS_SELECT: 40000 coherences re-estimated
PS_SELECT: 50000 coherences re-estimated
PS_SELECT: 60000 coherences re-estimated
PS_SELECT: 70000 coherences re-estimated
PS_SELECT: 80000 coherences re-estimated
PS_SELECT: 90000 coherences re-estimated
PS_SELECT: 100000 coherences re-estimated
PS_SELECT: 110000 coherences re-estimated
PS_SELECT: 120000 coherences re-estimated
PS_SELECT: 130000 coherences re-estimated
PS_SELECT: 140000 coherences re-estimated
PS_SELECT: 150000 coherences re-estimated
PS_SELECT: 160000 coherences re-estimated
PS_SELECT: 170000 coherences re-estimated
PS_SELECT: 180000 coherences re-estimated
PS_SELECT: 190000 coherences re-estimated
PS_SELECT: 200000 coherences re-estimated
PS_SELECT: 210000 coherences re-estimated
PS_SELECT: 220000 coherences re-estimated
PS_SELECT: 230000 coherences re-estimated
PS_SELECT: Reestimation gamma threshold: 0.629 at D_A=-0.00 to 0.726 at D_A=0.75
PS_SELECT: 227558 ps selected after re-estimation of coherence
PS_SELECT: Finished

STAMPS: ########################################
STAMPS: ################ Step 4 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_5

PS_WEED: Starting
PS_WEED: Weeding selected pixels...
GETPARM: weed_time_win=730 
GETPARM: weed_standard_dev=Inf 
GETPARM: weed_max_noise=Inf 
GETPARM: weed_zero_elevation='n'
GETPARM: weed_neighbours='n'
GETPARM: small_baseline_flag='y'
PS_WEED: 227558 low D_A PS, 0 high D_A PS
psver currently: 1
psver now set to: 2
PS_WEED: Finished

STAMPS: ########################################
STAMPS: ################ Step 5 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_5

PS_CORRECT_PHASE: Starting
Correcting phase for look angle error...
GETPARM: small_baseline_flag='y'
PS_CORRECT_PHASE: Finished

STAMPS: ########################################
STAMPS: ################ Step 1 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_6

SETPARM: heading = -166.5177
SETPARM: lambda = 0.055466
Rotating by -13.4823 degrees

STAMPS: ########################################
STAMPS: ################ Step 2 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_6

PS_EST_GAMMA_QUICK: Starting
PS_EST_GAMMA_QUICK: Estimating gamma for candidate pixels
GETPARM: filter_grid_size=50 
GETPARM: filter_weighting='P-square'
GETPARM: clap_win=32 
GETPARM: clap_low_pass_wavelength=800 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: max_topo_err=20 
GETPARM: lambda=0.0554658 
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
GETPARM: small_baseline_flag='y'
Found look angle file 
PS_EST_GAMMA_QUICK: n_trial_wraps=0.206727
PS_EST_GAMMA_QUICK: Initialising random distribution...
PS_EST_GAMMA_QUICK: 2580500 PS candidates to process
PS_EST_GAMMA_QUICK: iteration #1
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=0.377789
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #2
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.345466
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: iteration #3
PS_EST_GAMMA_QUICK: Calculating patch phases...
PS_EST_GAMMA_QUICK: Estimating topo error...
PS_EST_GAMMA_QUICK: 100000 PS processed
PS_EST_GAMMA_QUICK: 200000 PS processed
PS_EST_GAMMA_QUICK: 300000 PS processed
PS_EST_GAMMA_QUICK: 400000 PS processed
PS_EST_GAMMA_QUICK: 500000 PS processed
PS_EST_GAMMA_QUICK: 600000 PS processed
PS_EST_GAMMA_QUICK: 700000 PS processed
PS_EST_GAMMA_QUICK: 800000 PS processed
PS_EST_GAMMA_QUICK: 900000 PS processed
PS_EST_GAMMA_QUICK: 1000000 PS processed
PS_EST_GAMMA_QUICK: 1100000 PS processed
PS_EST_GAMMA_QUICK: 1200000 PS processed
PS_EST_GAMMA_QUICK: 1300000 PS processed
PS_EST_GAMMA_QUICK: 1400000 PS processed
PS_EST_GAMMA_QUICK: 1500000 PS processed
PS_EST_GAMMA_QUICK: 1600000 PS processed
PS_EST_GAMMA_QUICK: 1700000 PS processed
PS_EST_GAMMA_QUICK: 1800000 PS processed
PS_EST_GAMMA_QUICK: 1900000 PS processed
PS_EST_GAMMA_QUICK: 2000000 PS processed
PS_EST_GAMMA_QUICK: 2100000 PS processed
PS_EST_GAMMA_QUICK: 2200000 PS processed
PS_EST_GAMMA_QUICK: 2300000 PS processed
PS_EST_GAMMA_QUICK: 2400000 PS processed
PS_EST_GAMMA_QUICK: 2500000 PS processed
PS_EST_GAMMA_QUICK: gamma_change_change=-0.018231
GETPARM: gamma_change_convergence=0.005 
GETPARM: gamma_max_iterations=3 
PS_EST_GAMMA_QUICK: Finished

STAMPS: ########################################
STAMPS: ################ Step 3 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_6

PS_SELECT: Starting
PS_SELECT: Selecting stable-phase pixels...
GETPARM: slc_osf=1 
GETPARM: clap_alpha=1 
GETPARM: clap_beta=0.3 
GETPARM: clap_win=32 
GETPARM: select_method='DENSITY'
GETPARM: density_rand=2 
GETPARM: gamma_stdev_reject=0 
GETPARM: small_baseline_flag='y'
GETPARM: drop_ifg_index= 
PS_SELECT: Initial gamma threshold: 0.650 at D_A=0.03 to 0.723 at D_A=0.75
PS_SELECT: 184709 PS selected initially
PS_SELECT: 10000 patches re-estimated
PS_SELECT: 20000 patches re-estimated
PS_SELECT: 30000 patches re-estimated
PS_SELECT: 40000 patches re-estimated
PS_SELECT: 50000 patches re-estimated
PS_SELECT: 60000 patches re-estimated
PS_SELECT: 70000 patches re-estimated
PS_SELECT: 80000 patches re-estimated
PS_SELECT: 90000 patches re-estimated
PS_SELECT: 100000 patches re-estimated
PS_SELECT: 110000 patches re-estimated
PS_SELECT: 120000 patches re-estimated
PS_SELECT: 130000 patches re-estimated
PS_SELECT: 140000 patches re-estimated
PS_SELECT: 150000 patches re-estimated
PS_SELECT: 160000 patches re-estimated
PS_SELECT: 170000 patches re-estimated
PS_SELECT: 180000 patches re-estimated
PS_SELECT: 10000 coherences re-estimated
PS_SELECT: 20000 coherences re-estimated
PS_SELECT: 30000 coherences re-estimated
PS_SELECT: 40000 coherences re-estimated
PS_SELECT: 50000 coherences re-estimated
PS_SELECT: 60000 coherences re-estimated
PS_SELECT: 70000 coherences re-estimated
PS_SELECT: 80000 coherences re-estimated
PS_SELECT: 90000 coherences re-estimated
PS_SELECT: 100000 coherences re-estimated
PS_SELECT: 110000 coherences re-estimated
PS_SELECT: 120000 coherences re-estimated
PS_SELECT: 130000 coherences re-estimated
PS_SELECT: 140000 coherences re-estimated
PS_SELECT: 150000 coherences re-estimated
PS_SELECT: 160000 coherences re-estimated
PS_SELECT: 170000 coherences re-estimated
PS_SELECT: 180000 coherences re-estimated
PS_SELECT: Reestimation gamma threshold: 0.654 at D_A=0.03 to 0.722 at D_A=0.75
PS_SELECT: 177946 ps selected after re-estimation of coherence
PS_SELECT: Finished

STAMPS: ########################################
STAMPS: ################ Step 4 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_6

PS_WEED: Starting
PS_WEED: Weeding selected pixels...
GETPARM: weed_time_win=730 
GETPARM: weed_standard_dev=Inf 
GETPARM: weed_max_noise=Inf 
GETPARM: weed_zero_elevation='n'
GETPARM: weed_neighbours='n'
GETPARM: small_baseline_flag='y'
PS_WEED: 177946 low D_A PS, 0 high D_A PS
psver currently: 1
psver now set to: 2
PS_WEED: Finished

STAMPS: ########################################
STAMPS: ################ Step 5 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_6

PS_CORRECT_PHASE: Starting
Correcting phase for look angle error...
GETPARM: small_baseline_flag='y'
PS_CORRECT_PHASE: Finished

STAMPS: Directory is SMALL_BASELINES

PS_MERGE_PATCHES: Starting
Merging patches...
GETPARM: merge_resample_size=100 
GETPARM: merge_standard_dev=Inf 
   Processing PATCH_1
   Processing PATCH_2
   Processing PATCH_3
   Processing PATCH_4
   Processing PATCH_5
   Processing PATCH_6
Index exceeds the number of array elements (0).
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 478)
            ps_merge_patches
1 Like

If any of you are having this problem try changing the merge_resample_size value to 0 in Matlab/StaMPS:

setparm("merge_resample_size", 0)

This fixed it for me.

1 Like

thank you for reporting your solution.

Hello,
I will appreciate if you kindly help me for my new problem in stamps.
I can generate images with mt_prep(‘v-do’,4) but as soon as I made the mt_prep(‘v-dso’,4) the system will show me and error. In addition i can not make an export to qgis considering same error. the error is

Reference to non-existent field ‘ph_scn_slave’.

Error in ps_plot (line 1421)
ph_uw=ph_uw - scla.ph_scla - scn.ph_scn_slave;

Error in ps_export_gis (line 3)
ps_plot(‘v-dso’,‘ts’); %Time series variabls

Thank you for your help

‘s’ is the atmosphere corrected orbit error. You can only include it when you applied an atmospheric correction, for example with TRAIN.

The problem is When I am trying to make a csv file, I am receiving the mentioned error, and in case I neglected the S error, the system do not let me to generate csv file. I am using this command ps_export_gis(‘ps_ortho.csv’,[54.6 55.4],[30.25 30.65],‘ortho’) and the system tell me about
Error in ps_export_gis (line 3)
ps_plot(‘v-dso’,‘ts’); %Time series variabls
In case I use ps_plot(‘v-do’,‘ts’) the image correctly will generate. I can neglect the S erro but it is strange that I can not generate csv file.

so this means that the error is not related to the ‘s’ flag.
Did you write ps_export_gis yourself?
Have you tried the kml export instead?

I have the same problem,i tried changing the merge_resample_size but it din’t worked for me.

Sir i have the same problem.but this solution din’t worked for me.