dbekaert / StaMPS

Stanford Method for Persistent Scatterers
http://homepages.see.leeds.ac.uk/~earahoo/stamps/
GNU General Public License v3.0
226 stars 119 forks source link

Corrections for importing from a GAMMA stack #41

Open alexisInSAR opened 1 year ago

alexisInSAR commented 1 year ago

Several corrections have been done in the StaMPS scripts regarding the use of InSAR stack from GAMMA.

mt_prep_gamma

136     else  
137         echo "Unknown image format in" $RSC 
138         exit(4)
139     endif
140 endif
141 echo "Precision is" $prec
142
143 end #<-- This "end"
144 echo "gamma" > processor.txt
145 if ($SB_FLAG == 1) then
146     matlab -nojvm -nosplash -nodisplay < $STAMPS/matlab/sb_parms_initial.m > sb_parms_initial.log
147 else
148     matlab -nojvm -nosplash -nodisplay < $STAMPS/matlab/ps_parms_initial.m > ps_parms_initial.log
149 endif

ps_load_initial_gamma

Old:

50 master_day=str2num(ifgs{1}(nb-21:nb-14));

New:

50 master_day=str2num(ifgs{1}(nb-27:nb-20));

sb_load_initial_gamma

Old:

141 xy=llh2local(lonlat,ll0)'*1000;

New:

141 xy=llh2local(lonlat',ll0)'*1000;