ps_load_initial_isce.m

381 views
Skip to first unread message

Matt

unread,
Jan 2, 2021, 8:53:27 PM1/2/21
to MAINSAR
Hi all, 

I'm using StaMPS for PS and SB analysis of Sentinel-1 data processed in ISCE using the prepStackToStaMPS scripts.

I'm having a problem running PS method in StaMPS at the moment. I think it's because I updated all the scripts in StaMPS to be able to work with the new diversity changes made in the ISCE prepStackToStaMPS scripts? But I could be wrong and it could be something else. 

I get the following error in matlab after stamps(1,1): 

>> stamps(1,1)

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

STAMPS: Will process current directory only

STAMPS: ########################################
STAMPS: ################ Step 1 ################
STAMPS: ########################################
STAMPS: Directory is PATCH_47

Found inc angle file, will load the data 
Loading data into matlab...
SETPARM: heading = -163.9051
SETPARM: lambda = 0.055
Unable to perform assignment because the left and right sides have a different
number of elements.
Error in ps_load_initial_isce (line 126)
        caldate(i)=bb;
Error in stamps (line 285)
                    ps_load_initial_isce(data_inc)  

I'm not that experienced with Matlab but after looking at the ps_load_initial_isce.m file I thought it might be because the file names in calamp.out are now using reference and secondary and the str2num functions for aa and bb (lines 115 -126) need to be altered? I've attached the modified version of ps_load_initial_isce.m. 

I'd appreciate some help if anyone else has experienced a similar issue or could give some advice. 

Thank you,

Matt
ps_load_initial_isce.m

kevin112...@nctu.edu.tw

unread,
Jan 2, 2021, 10:09:59 PM1/2/21
to MAINSAR

Hello~
I have debuged this problem. Based on my experience, you may also need to add the caldate(i) = bb to catch the slave image.
螢幕擷取畫面 2021-01-03 110710.png
Hope it can help you!
Cheers
Chongyou Wang
Matt 在 2021年1月3日 星期日上午9:53:27 [UTC+8] 的信中寫道:

Matt

unread,
Jan 2, 2021, 11:36:18 PM1/2/21
to MAINSAR

Thank you much Chongyou Wang. It is working fine again! 

pan...@gmail.com

unread,
May 7, 2021, 1:42:22 AM5/7/21
to MAINSAR
I get same problem as you, how you fix it?

Best Regards
Panggea Ghiyats Sabrian

Raj Sunil Kandregula

unread,
Nov 22, 2022, 3:24:51 AM (4 days ago) Nov 22
to MAINSAR
Hello,
When i run the stamps process (1,1) it is throwing me an error. Any help would be greatly appreciated
Error using  ~=
Arrays have incompatible sizes for this operation.

Error in ps_load_initial_isce (line 129)
    not_reference_ix=caldate~=reference_day_yyyymmdd;

Error in stamps (line 281)
                    ps_load_initial_isce(data_inc)

Reply all
Reply to author
Forward
0 new messages