Snap2stamps package: a free tool to automate the SNAP-StaMPS Workflow


I have been attempting to do Psinsar using the snap2Stemp workflow. Following the steps mentioned in the manual, I got to the StaMPS export step, and as a result, a project folder contains the final output structure in four folders: rslc, diff0, geo, and dem. Please, if you could help me, I have some issues.

  1. in order to prepare data before running data, but I have an error when I run mt_prep_snap: command not found.

  2. I installed Stamps-4.1-beta, and I know I need to make some changes to the configuration. My question is: in which lines should I give a path in StaMPS? CONFIG.bash?

Thanks and Best regards.

Both your questions address proper installation.

Have you seen this? StaMPS/ · master · Matthias Schlögl / gis-blog · GitLab

1 Like

No, I didn’t, I’ll go through it and let you know if the error is resolved.
Thank you

Dear ABraun

I have installed Triangle and Snaphu and made the configuration in StaMPSCONFIG.bash as mentioned in the links that you shared with me. But unfortunately,
I still face the same error when I try to run mt_prep_snap: command not found.

1 Like

If you export your stamps path up to a bin folder like the above post. No need to change anything in StaMPSCONFIG.bash file.

sorry I don’t understand really your point
do you mean that I should add this line “export PATH=/home/shadi/StamPS/bin:$PATH
source .bashrc” to StaMPS_CONFIG.bash?

No No,
Just add your stamps path upto bin folder to .bashrc file
then type
source .bashrc

I actually do it but I still face the same problem
mt_prep_snap: command not found.

Dear mdelgado,

I encountered an Error in step 2 of the temporal consistency calculation. as shown in the screenshot

Could you please help me with this ?

Thanks and Best regards

Hello ABraun

I am also encountering an error in step 2
I’m using StaMPS-4.1-beta and the previous step was completed successfully but this error appeared in the stamps (2


could you please assist me in solving this issue?

Thanks and best regards

Dear Mdelgado

Does this k value match the K_ps found within pm2.mat?

I think so!

If you are planning to implement that enhancement, could you share it later with all of us?

Dear mdelgado, I can share yes. I’ve made slight advances since I posted this question here on the forum, I still have some doubts about how to better calibrate the K2q.m. On GitHub, you can see in greater detail.

how can you solve it please

@Edwardo @Hebaabouzied
Try to crate a directory names in internal or external hard_disk without any space
example proyecto psi to proyecto_psi
Try it, it will work.

thank you so much, I finished my work with no problems, but now i wonder if @mdelgado has developed an update for the scripts on python, so we can use recent linux distros to perform stamps properly.

1 Like

Are you using the v2 released in last September? Seeing your comment it seems to me that you are using the v1 released in July 2018.

Please clarify please

Is there a way to export the figures created by the ps_plot command as georeferenced tiff files so I can plot them into their proper geo-locations on other softwares? instead of having plain images without any digital reference coordinate system

Well… the original idea of those plots is that you can see in radar coordinates what is being produced so you can identify possible issues happening on any of them. Additionally, the TC step was not included in purpose, as it may add a non neglectable time, specially when working with very large time series data.

However, if desired, you can add the TC operator and it shall work, as the Multilook is also quite high, so if you specify a spatial resolution in correspondence with the ML factor, you can get what you are looking for.

I can add it to the wish list for the next release, but I guess you can also easily add the TC operator.

Thanks for the suggestion. Best