Stamps PS Step1 Error

1,243 views
Skip to first unread message

Björn De

unread,
Jun 18, 2016, 1:40:11 PM6/18/16
to MAINSAR
Hej all,

I want to start Stamps the first time and got an error in Matlab:

run /home/bjoern/Apps/StaMPS_v3.3b1/matlab/stamps(1,1)

########################################
######## StaMPS/MTI Version 3.3 ########
######## Beta version, Sep 2013 ########
########################################

Processing current directory only...
STAMPS
:
Processing PATCH /home/bjoern/Apps/StaMPS_v3.3b1/matlab

########################################
############ StaMPS Step 1 #############
########################################

PS_LOAD_INITIAL
: Starting
Loading data into matlab...
Error using load
Unable to read file '../day.1.in': no such file or directory.

Error in ps_load_initial (line 52)
day
=load(dayname);

Error in stamps (line 141)
                ps_load_initial
;

Error in run (line 64)
evalin
('caller', [script ';']);

I'm think the path to "Processing PATCH"-directory is wrong, but where can I change it. In Matlab I am in this directory.

Thanks in advance!
Bjoern

赵一飞

unread,
Oct 8, 2017, 8:28:40 AM10/8/17
to MAINSAR
HI:
 I encounter the same problem with you. How can you sove it ? Thanks

在 2016年6月19日星期日 UTC+8上午1:40:11,Björn De写道:

jozep

unread,
Dec 1, 2017, 11:38:41 AM12/1/17
to MAINSAR
Hi, has anyone resolved this problem?

David Bekaert

unread,
Dec 1, 2017, 11:47:21 AM12/1/17
to mai...@googlegroups.com
Hi,

You should add the stamps matlab folder onto your matlab path.
See the set-up chapter of the manual on how to set-up the STAMPS_CONFIG.sh or tcsh file.

Next you should be processing from your INSAR folder for SM processing.
So when matlab is open your path, i.e. pwd should be of the INSAR_YYYYMMDD folder
Only then call the stamps program.

Cheers,
David

On 1 December 2017 at 08:38, jozep <josipb...@gmail.com> wrote:
Hi, has anyone resolved this problem?

--
You received this message because you are subscribed to the Google Groups "MAINSAR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mainsar+unsubscribe@googlegroups.com.
To post to this group, send email to mai...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jozep

unread,
Dec 1, 2017, 12:03:45 PM12/1/17
to MAINSAR
Hi David,

thanks for the quick response.
I have added StaMPS matlab folder to Matlab path using
>> oldpath = path;
>> path(oldpath,'/usr/local/stamps/StaMPS/matlab'),
and I am in the right folder in Matlab when I call stamps program.
Still I get aforementioned error:
Error using load
Unable to read file '../day.1.in'. No such file or directory.


Error in ps_load_initial (line 52)
day=load(dayname);

Error in stamps (line 141)
                ps_load_initial;

Do You know what else could couse this error and how to solve it?

Thanks in advance,
Josip.

David Bekaert

unread,
Dec 1, 2017, 12:16:40 PM12/1/17
to mai...@googlegroups.com

If you are already at the processing location then it looks like you have missing files.
How was the data processed?

Can you send the complete command screen output?
All the output:
> matlab
>> % cd to your INSAR folder
>> ls
>> stamps(1,1)

Cheers,
D.

jozep

unread,
Dec 1, 2017, 2:57:34 PM12/1/17
to MAINSAR
I used Sentinel 1 data and formed interferograms from SLC data in SNAP. After PSI export from SNAP, I have run mt_prep_gamma on Windows 10 using cygwing. After getting some errors, I decided to try using StaMPS under Ubuntu, as few people recommended on SNAP forum. I attach 2 screen shots, hopefully they contain enough information to help you detect problem.

Thanks in advance,
Josip.



David Bekaert

unread,
Dec 1, 2017, 3:09:57 PM12/1/17
to mai...@googlegroups.com
It looks like you are missing the day.1.in file.
StaMPS currently does not include a script to read directly from snap toolbox.
I assume you might not have updated the mt_prep_gamma script?

Katherine posted before some fixes to that script and step-by-step guidelines on how to succesful run snap stacks in stamps.

jozep

unread,
Dec 1, 2017, 4:08:42 PM12/1/17
to MAINSAR
David, thanks for helping.

I did have updated scripts mt_prep_gamma and ps_load_initial_gamma in right directories. All I had to do is delete original script and rename ps_load_initial_gamma to ps_load_initial.

karam...@gmail.com

unread,
Dec 2, 2017, 9:36:03 AM12/2/17
to MAINSAR
Dear Josip,
This post is just a try to find what caused this error. It seems that your 'insar_processor' parameter is not 'gamma' as it should be. 
As far as i understood this is the reason
  • Run stamps(1,1) without having an initial parms.mat file
  • stamps.m line 57 ---> insar_processor=getparm('insar_processor'); 
  • getparm.m line 14 ---> ps_parms_default
  • ps_parms_default.m line 324-->parms.insar_processor='doris';
  • According to stamps.m (lines 138-143) ps_load_initial "runs" only if 'insar_processor' is not equal to 'gamma'.
In your INSAR_20161222 directory you can check if in your processor.txt file contains 'gamma' (it should) and choose one of the following:
  • rename the script to ps_load_initial (as you already did)
  • read 'insar_processor' from processor.txt file
  • manually setparm('insar_processor','gamma')
Kind Regards,
Kleanthis

jozep

unread,
Dec 2, 2017, 5:39:46 PM12/2/17
to MAINSAR
Thanks for clarification, hopefully others find it useful too.

Kind regards,
Josip.

Andre Theron

unread,
Jun 7, 2018, 3:52:57 AM6/7/18
to MAINSAR
Thank you Kleanthis

I had the exact same problem after preparing my S1 data using SNAP and then attempting to run stamps using octave/matlab in a cygwin environment.
manually setparm('insar_processor','gamma') got me past that step. 

On to the next error problem :)
Reply all
Reply to author
Forward
0 new messages