Problem with StaMPS installation using Linux

Dear Len and samanin,
I am getting same error as samanin. If you solve it please let me know.
Thank you.

did you configure StaMPS.bash correclty? The command “mt_extract_cands” is in the Stamps\bin folder the same as where “mt_prep_gamma_snap” is located. If the latter is found by your shell, the first should be callable as well.

Thank you Abraun. After fixing StaMPS.bash I was able to run stamps. But I got error in first step stamps (1,1). When I open INSAR_masterdate folder I cannot find PATCH file and some other files. Please help. Did I messed up the paths.
Thank you.

two things that helped when I got this error:

  1. make sure all data is correctly exported from SNAP.
  2. set ‘gamma’ as your processor in Matlab.

setparm(‘insar_processor’, ‘gamma’)

i couldent fix yhat problem.

Please Help me to install Stamps 4.1

Hi @tarak @thho

I have a similar problem, I think I followed the steps as explained by @thho in his tutorial but I can not fix this error. Can you help me please?

Thank you very much.

you have to exchange the ‘master date’ in your path by the actual date. --> INSAR_20181129

Thanks @ABraun, that day I was processing at 3 a.m. and I can not see my error. I have corrected the error and processed StaMPS.

  1. make sure all data is correctly exported from SNAP.
  2. set ‘gamma’ as your processor in Matlab.

setparm(‘insar_processor’, ‘gamma’)

Check link below for linux command
https://www.puttygen.com/linux-commands

Does anyone have compiled matlab files that are used in StamPS? I should use StamPS without installation of matlab. Only with MCR.

Dear All, ,
I would like to install and run StaMPS-4.1 (to run PSI process with Snap and StaMPS). I installed Debian 9 Linux on a virtual machine (VMware).To deploy the configuration, I installed Snap (home/snap), Snaphu (home/snaphu-v2.0.3), Matlab (/mnt/sda3/Matlab) and then StaMPS-4.1-beta (/mnt/sda3/Matlab). For StaMPS, I have edit the StaMPS_CONFIG.bash to give the right paths.
image .


Do I need to add “source StaMPS_CONFIG.bash” to .bashrc (is it mandatory ?).
What is the next step ? Run the script (mt_prep_snap) from Matlab ?
Could I only use Snap, Snaphu and StaMPS ? Is it mandatory to install triangle, Doris ?
How to know if my configuration is correct ?
How to manage the directories for INSAR Master date, slave… ?
Thanks for your support

1 Like

if you cannot access/edit the bashrc you can also manually source the config file each time you start working with StaMPS.

mt_prep_snap is called from the linux command line in order to generate the basic working environment required Some notes on this here: How to prepare Sentinel-1 images stack for PSI/SBAS in SNAP

you need triangle and snaphu in any case. If you pre-processed the data with SNAP (e.g. like suggested here)

at best, you leave the initial files exported from SNAP in one folder and create a separate working directory for the StaMPS processing (where you first execute mt_prep_snap) as suggested here. The rest of the folder management is done by the StaMPS scripts alone, as long as you don’t move any files or rename directories :slight_smile:

Hope this helps a bit.

I am facing Problem in installation of StaMPS v4.1b. While writing ‘make’ command under suitable folder, the following message is coming

g++ -O3 -c -o calamp.o calamp.c
g++ -O3 calamp.o -o calamp
g++ -O3 -c -o selpsc_patch.o selpsc_patch.c
g++ -O3 selpsc_patch.o -o selpsc_patch
g++ -O3 -c -o selsbc_patch.o selsbc_patch.c
g++ -O3 selsbc_patch.o -o selsbc_patch
g++ -O3 -c -o cpxsum.o cpxsum.c
g++ -O3 cpxsum.o -o cpxsum
g++ -O3 -c -o pscphase.o pscphase.c
g++ -O3 pscphase.o -o pscphase
g++ -O3 -c -o psclonlat.o psclonlat.c
g++ -O3 psclonlat.o -o psclonlat
g++ -O3 -c -o pscdem.o pscdem.c
g++ -O3 pscdem.o -o pscdem

And then while writing ‘make install’, then this message is coming
make definstall;
make[1]: Entering directory ‘/home/hari/Desktop/PSI_Insar/StaMPS-4.1-beta/src’
dir=…/bin;
if test ! -d $dir; then
echo “Sorry, dir …/bin does not exist, exiting…”; exit; fi;
echo Installing in directory: $dir;
list='calamp selpsc_patch selsbc_patch cpxsum pscphase psclonlat pscdem '; for p in $list; do
echo “Installing (copy): $p”;
cp -f $p …/bin/$p;
done
Installing in directory: …/bin
Installing (copy): calamp
Installing (copy): selpsc_patch
Installing (copy): selsbc_patch
Installing (copy): cpxsum
Installing (copy): pscphase
Installing (copy): psclonlat
Installing (copy): pscdem
make cleaner
make[2]: Entering directory ‘/home/hari/Desktop/PSI_Insar/StaMPS-4.1-beta/src’

  • Removed junk.
  • Removed executables in source dir: /home/hari/Desktop/PSI_Insar/StaMPS-4.1-beta/src.
    make[2]: Leaving directory ‘/home/hari/Desktop/PSI_Insar/StaMPS-4.1-beta/src’
    make[1]: Leaving directory ‘/home/hari/Desktop/PSI_Insar/StaMPS-4.1-beta/src’
    and finally the software is not installed.

Please help me?

My system is x86_64. Is this error because of PC compiler or something else.

With regards

@hariiirs did you manage to overcome the challenge? I’m facing the same problem on Ubuntu 18.04 on wsl.

@ABraun I’m unable to get past make install as it returns the error shared by @hariiirs. I managed to successfully install it the last time though, but I had to reinstall my OS. I tried this on Ubuntu 18.04 running on WSL 1 and Virtualbox on macOS Big Sur. Any assistance will be greatly appreciated.

Thanks!

does it help if you create the bin directory before executing the make command?

I think “…/bin” is referring to the bin directory in StaMPS? I tried to copy this dir to src but it didn’t help. I edited the Makefile by providing the full path to bin, still didn’t help. Then I replaced “…/bin” with “/usr/bin” but it was no good

Looks like it’s not an “error”. I continued with source StaMPS*.bash and looks like everything is working fine.

good to hear. This part sounds alright - so if these scripts were created in the bin directory and you correctly modify the StaMPS_CONFIG file, it should work.

1 Like

YES, @calebaid2000 you are right. Same was with my case. Moreover, bin is the folder under StaMPS only and before executing make command, working directort was changed to StaMPS/src