Linux Installation using StaMPS and S-1 data

Dear @firat,

I guess the script tries to open a connection to a file that does not exists. That is what I read out of the first error message. All errors after, try to do something with the file which is missing (that is my guess). I can not really help you with this one, never had problems in step six like this. I would suggest look, if there are the files in your INSAR_master_date dir which are called in the script, if they are missing, try to figure out why. That helped me to solve some problems in the past.

Good luck!

thank you so much @thho

I fixxed the problem now while adding the path of snaphu/bin folder before working mt_prep_gamma in terminal and ı finished the all processes without any problem

Now what should ı do for seing the results ?

please have a look at the manual chapter 6:

The program viStaMPS also helps so visualize the results:

1 Like


I saw your post in MAINSAR, and the hint with snaphu, good to see that it helped you! Now after step 6 you have to play with the parameters. the ps_plot() function helps you a lot. I really recommend the handbook , this tutorial and the ps_plot() help (just type help ps_plot in matlab to get this overview). The ‘results’ you get by default settings may not be satisfying, from what you wrote until now I assume you are looking on a very small area, I admit that I do have some trouble with this kind of study site myself, and you really have to adjust the parameters of StaMPS to your data. It may help you to better visualise and explore your data using this app, but that is not necessary.

Good luck and keep playing with the parameters to better understand StaMPS and your data :)!

Thank you so much Dear @thho and @ABraun for the answers, helpful sharings and advises :slight_smile:

now ı have an ps_plot() function error just like below (no ps_plot() script doesn’t work)

How can ı fix this problem ?


this question has already been answered here and in my workflow summary for SNAP-StaMPS; open the script you use in the stamps installation folder/matlab/ and delete the break command mentioned in the error message, save it and run the function again.

Hello @thho
Thank you so much

After deleting break command in parseplotprm.m, ı saved it and ı fixxed that error but now ı have this error on below

what should ı do for fixxing this problem ?

Dear @firat,

sorry I can not help you with this one, I am a bit surprised, are you sure you have not deleted to much in the plot script by accident?
To double check, I provide my plot script, maybe that is a little help…when you have found the error, please tell us the solution here for next users to find an answer to this error :slight_smile:

parseplotprm.m (4.2 KB)

ts_plot.m (3.7 KB)

Stay tuned on the last step you are almost there!

Dear @thho

Thank you for your sharings

ı fixxed that error while starting matlab like below;

and problem has been solved

ı read that this problem is due to Turkish locale settings in GNU/Linux systems

1 Like

Hello Dear @thho @ABraun @daniel_bona @bayzidul @Fikretjfm @FeiLiu @annamaria @katherine @falahfakhri

I want to ask a question to all of you if you don’t mind,

If ı work on a very small area like 3x2 km, and if ı compare my insar results with very precise levelling meausrements, then which technique is more useful and more accurate that can be suitable with levelling results, PSI or SBAS ? (By the way ı am not working on a rural area)

And also one more question; Is there any pratical method that provide me to understand which ascending or descending images are more suitable on my area ? ı know that ı can not use both ascending and descending images together, so now ı am working with ascending images but maybe descending images show me better results ? how can ı know that before processing for gaining from time ? only with testing ? or is there any pratical method which ı can understand that ascending or descending images are better for my area ? ı ask this question because my computer is little slow on processing and for gaining time from processing , it can be good to know

Thank you so much

Dear @firat,

the question you ask is no longer related to the topic of the thread, please consider this before posting to help keep the forum as structured as possible.

InSAR is a complex topic, make sure you are familiar with the basics, reading this is a good start, furthermore study paper and learn from good published practice.

PS will provide you with less points then SBAS to track, but still using PS or SBAS is not the whole question, which algorithm you use (SqueeSAR, StaMPS etc.) changes a lot too, mainly during phase unwrapping and point extraction, as I know. The area of your study site and the topographic conditions are very important, using plain StaMPS in high mountains could become a problem, and in general, if you can answer your question with the less processing intensive and complicated approach, I would choss this (Occam’s razor)

Concerning de- or ascending orbits, it depends on the orientation of your slope. Choose the orbit where the radar looks down the slope, for ascending and right looking radar these are slopes orientated to the east and vice a versa for descending. This omits foreshortening but if your slope is to steep, you may have problems with the radar shadow…you can analyse this beforehand with a DEM and I think there is a tool in SNAP doing this too. To decompose LOS movement to vertical and horizontal movement you should in the end use both ascending and descending orbits, have a look here.


Hi @firat,

Just to remind you that the resolution is more than 10 meters normally. and u can check the actual resolution in the metadata. Even if you use precise leveling measurements, i find it very strange you want to use a figure smaller than the minimum length, if you get my drift?

Also, I think it would be helpful to you to read up on articles in IEEE instead of asking @thho for help because it would be more customized to your own project. PSI and SBAS when used together produces the most accurate number of PS pixels ( from the studies I have read) although PSI is sufficient if you are working in a built-up urban area. For this you can check the theory involved from Professor Hooper in his original paper because it clearly states it requires other pixels in the math involved, thus rural areas which do not produce so many permanent data points are not very suitable for the processing.

There is also another type of processing called IPTA you may want to search it up? some kind of more advanced processing than PSI or SBAS I presume. Not sure what the pre-requisites for its use is, but it is more accurate apparently.

I have not tried both ascending and descending orbits as the particular data i am working with is only available in descending orbit.

Hope that helped :slight_smile:


Dear all,
I have a big problem with the installation of Stamp.
I have followed all the steps but it does not work.
I have dwnload Stamp (
I have unpacked it
I have copied the unpacked folder in my workmachine:

I have opened my terminal and written the path:

but I have a problem with “make” and “make install” because it says that “no make file found” but inside src, I have the Makefile:

I have tried to install it also on windows with cygwin but I have the same results.
I have also edited the path on enviromental:

could you help me?

On Windows:
-I have create on C a new folder Temp and I have copied the unpacked folder

-I have opened the cygwin emulator, written the path and “make”

The result is the same!!!

I have tried again both on cygwin that on linux workmachine and the error is the same:

g++ -O3 -c -o selsbc_patch_new.o selsbc_patch_new.c
make: g++: Command not found
make: *** [: selsbc_patch_new.o] Error 127

so the problem is not linux or windows.
There is another problem but I cannot found it.
Anybody can help me?

Hi dear, after installing of StaMPS, I chanaged stamps_config.bash headers and then from my insar_master_date folder is located I call mt_prep_gamma…but it doesnt run!! Why??

Delete ‘Break’ command in line 98 in parseplotprm.m

Thank you very much for the instruction to use and do PSI using StaMPS, however after reading trough others problem. i can’t find my solution yet. it seems that i wrongly set my config.bash file. for any suggestion and help, i kindly appreciated.

I think you aren’t calling the script correctly

mt_prep_gamma_snap date folder dispersion patch-rg patch-az overlap-rg overlap-az

also, your INSAR_20170804 is placed inside StaMPS_v3.31b1 but you call it in GN_Agung

You have “StaMPS_v3.31b1” and “StaMPS_v4.1-beta” inside a folder called “StaMPS_v3.31b1” and you call your config.bash from Sentinel\StaMPS_v4.1-beta

–> there are 4 different folders of StaMPS in your environment and chances that things get mixed up are quite high.

1 Like

Hello all. I’m having a hard time running Stamps here. Can anyone tell me what’s wrong? Thanks