#set filename and foldername
resultfolder   /home/users/insar/rstacking/result/
headerfile     /mnt/hpc2/processing/ta156/before_sbas_aps/ifgs/20170614-20170626.phs.rsc
filelist       /mnt/hpc2/processing/ta156/before_sbas_aps/ifgs/filelist
datafolder     /mnt/hpc2/processing/ta156/before_sbas_aps/ifgs/
baselines      none
######
#set predefined parameters
ref_row          0        
ref_col          0        
ref_window       5        
maxcap           5000000   
wavelength       0.055165 
if_remove_orbit  1
orbit_quad_fit_sampling  4 
if_remove_hgt    1
hgt_block_size   500  
demfile          /home/users/insar/rstacking/dem_cut
demfile_header   /home/users/insar/rstacking/dem_cut/dem_cut.rsc
sigma_factor   1.5
if_check_loop_closure    1         
loop_misclosure_threshod 3.14      
loop_misclosure_ratio_threshod 0.5 
minimun_loop_num 0                 
if_allow_unlooped_pixel 1          
minimum_temporal_ifg_ratio 0.5    
#
###################################################################################################################################
##parameters explained
###set filename and foldername
##resultfolder   !!must be created before running!! all results and intermedie files will be stored in this folder
##headerfile     an rsc style header file, must contain "WIDTH,FILE_LENGTH,X_FIRST,Y_FIRST,X_STEP,Y_STEP"
##filelist       a filelist file containing all the filenames of ifgs. !!do not contain pathname, only filenames are allowed!!
##datafolder     path where ifgs are stored
##baselines      a baseline text file define the baseline of each ifg. !!two column text file, first column: filename, second column baseline in meter!!
########
###set predefined parameters
##ref_row        row number, set to 0 to select automatically 
##ref_col        col number, set to 0 to select automatically 
##ref_window     window size to extract reference point value
##maxcap         maximumn capacity of memory (pixel size), over which the ifg will be divided;
##wavelength     in meter
##sigma_factor   phase value out of range (median-std*sigma_factor, median+std*sigma_factor) will be deleted
##if_remove_orbit                0: no orbital ramp removal; 1: removel orbital ramp and write out new files
##orbit_quad_fit_sampling        resampling factor when estimating orbit quadratic polynomial
#if_remove_hgt                   0: no hgt error removal; 1: remove hgt errors by phase=a+b*heigh
#hgt_block_size                  size of hgt error estimation window, in km
#demfile                         demfile, must at least cover the whole ifg
##if_check_loop_closure          0: no loop closure; 1: check loop closure
##loop_misclosure_threshod       threshod to define a failed loop closure
##loop_misclosure_ratio_threshod ratio of failed loops among all possible loops, over which there will be a mask
##minimun_loop_num               only check loop closure when there are at least minimun_loop_num loops exist
##if_allow_unlooped_pixel        0:exlcude those pixels; 1: alow those pixels, unlooped means loop number < minimun_loop_num 
##minimum_temporal_ifg_ratio     temporal_ifg_ratio=(valid_ifg_number)/(total_ifg_number), less than which there will be a mask
