Linux Installation using StaMPS and S-1 data

Note I have only changed the bash config file not the tcsh file.

Hi hchong005, I did not notice the ^M: message you have already got one post before, sorry. I think your workflow to prepare and call the mt_prep_gamma_snap script is just fine…but:

^M occurs whenever you have some “bad” line endings in your script, mostly an extra space or something…well, that is really nasty to recognize on screenshots ;). I recommend to double-check the scripts you edited (mt_prep_gamma_snap and so on) and delete all needless spaces in each line in the end. When I encountered this problem the first time, I found this thread helpful

The fact, that you got the ^M message and the Andy Hooper, December 2012 is a hint, that the mt_prep_gamma_snap script was called successfully, but in the script exists a line you might have changed and somehow got a bad ending, maybe added a comment etc. I remember you said you have tried to change WORKDIR in mt_prep_gamma_snap, my best guess is, you have not restored the script exactly…In your place, I would delete the script mt_prep_gamma_snap, download the changed one by FeiLiu, rename it and paste it to the …/bin folder once again. Do not forget the execution flag!

After that try again to run this script.

Good Luck, and I hope, I am right with my assumption :slight_smile:

Hi @thho
I have successfully installed StaMPS!
However, the matlab is now not running as smoothly as I had thought. It is the exact same problem as the other users in this forum…
How to prepare Sentinel-1 images stack for PSI/SBAS in SNAP

I will post screenshots here and in the other chat.

Hopefully we can all solve this problems together!

Cheers!

Hi @hchong005, good to see that you arrived Matlab!

I think you just missed one thing. After you have ran mt_prep_gamma_snap do not close the terminal, and if, open a terminal source the CONFIG.bash and go to your directory INSAR_20170405. In both cases you can now type in matlab to launch Matlab from the folder containing your data, which you have prepared with mt_prep_gamma_snap (that is absolutely necessary). When doing so, the Matlab window will appear, and now you can run stamp(1,1).

On my screenshot you will notice that Matlab is processing in folder …/INSAR_master_date/Patch1 containing information to read my data into matlab and which was found by matlab in /home/user/…INSAR_master_date, the location you launched Matlab from!

Reading your screenshot, I came to the assumption that you launched Matlab in another way…Am I right about that? If not please tell me, so that we figure out what is going on.

2 Likes

Basically, when I installed matlab, I did not make the symbolic links to open matlab from anywhere, so I keyed in:
cd /usr/local/bin/
sudo ln -s /usr/local/2017b/bin/matlab
matlab
and did as you said to source the config.bash file,
then: cd /home/fyp/Documents/INSAR20170405/
matlab
and the matlab ran upon stamps(1,1), and it has completed it will say PS_LOAD_INTIAL: Finished.
I have entered stamps(1,8), I shall see how long it takes to complete till step 8 and if there are any hiccups.
because I am using a test data set, and this test data set does not necessarily comply with the same exact steps as the “stack averaging” method posted in the forums, I am going to swap out to my real data set which is more memory demanding soon ( so that I can see if it really works).
Once my real data set is done, (hopefully by 19 Feb or 20Feb) I will update you on the progress.

Thanks for the great help!
Regards,
Chong

latest update: receiving error past step 6, problems with plotting etc. Have been changing parameters but not successful.

Is the error about a BREAK command in the ps_plot.m script? If this is the case, search the script in StamPS…/matlab folder open it in scite/kate or some text editor, search for break and comment the line with the command. Save and try plotting again, I had to do this in my case for some plot scripts in matlab.

There’s no break word in the ps_plot for me.So far I can see this…

But I am still processing my files so that will take a few more days. I am hoping this error will go away with the new data file which is more complete.

Thanks!
Chong

i am facing same error

how to resolve this? i’ve never used linux before. please help me

the patch where the StaMPS scripts are located needs to be made available to your shell.

the result same like this @ABraun

and this is all of my file

check for the following:
did you install ‘gawk’?
did you install ‘bash/cash’ reader?
delete the existing patch 1 file if you still have it, and replace the mt_prep_gamma_snap and ps_load_initial file directly from user thho’s website.

i think ur config.bash or config.csh directory was not written correctly.

Then run everything again based on the above. note you will have to open another terminal to run matlab.

Cheers,
Chong

1 Like

i do not have this error anymore. try keying in this to matlab ps_plot(5,0,0,1) or ps_plot(5,0,0,【】);

How to check it, i’ve never used linux before

Don’t take this personal, this rather concerns all users in tje StaMPS category, but if you want to use programs and scripts bases ob linux you should bring the motivation to google such smaller things by yourself. This forum is not a computer course :slight_smile:

1 Like

Hi aziz10,

Firstly, I have also never used linux before I have embarked on this project so I think it does help to google stuff online and trying to reference some “linux for dummies” tutorials. I also did not screenshot my ‘gawk’ installation process so I cannot help you to monitor step-by-step. But now, I have managed to learn to download ‘gawk’ on my own with googling so I think you can too :slight_smile:

Nevertheless, you can consider this http://web.mit.edu/gnu/doc/html/gawk_18.html

If it helps, i think you should do this tutorial provided by @thho step by step file:///C:/Users/User/Desktop/snap_stamps_1_0.html#27_matlab

do not miss out any steps because you will get frustrated with the errors if you do. (I personally made these mistakes by myself so I know)

Goodluck!
Chong

1 Like

Thank you, i’ll try

Can you share your matlab directory or ps_plot.m please?

ps_plot.m (56.1 KB)

Hello Dear Helpers, ı am trying to do PSI application on my S-1 images and ı am using linux machine and ı can not pass a step can you help me ? @thho @hchong005 @ABraun @FeiLiu @bayzidul @Fikretjfm

after working terminal just like below

ı am opening matlab and then try to work matlab but it doesn’t work like below

and ı added the my export and Patch datas directories to matlab like below too

and when ı look at the error, it shows me the picture like below

So, what should ı do ?