Linux Installation using StaMPS and S-1 data

Dear gomalhunzai,
Can you specify what the initial gamma threshold value is? It’s gamma_ stdev_ reject? I also encountered 0 PS selected initially in stamps (3,3)

good day. i am new to linux and also stamps. i am trying to call mt_prep_snap but its saying file not found. please what can i do

1 Like

thank you i will try it


the mt_prep_snap command not calling

There are a number of reasons the suggestion:

can fail. This can make it difficult to address your problem remotely.

You appear to using an external drive. Some systems configure external drive to block running executable. Some applications expect a standard linux filesytem and may be confused if yours is exFAT or NTFS format.

Some linux distributions or site configurations divide the ~/.bashrc into sections for interactive and non-interactive sessions. If yours has such sections you need to make sure you set the PATH in the correct place.

You have some directories with spaces in the name. Special care is needed to set the PATH if you have a space in the name of one of the directories:

PATH="/media/<user>/New Volume/.../bin:$PATH"

There are many good online references and tutorials (but also a lot of misinformation) for the linux command-line. You may find that a few hours spent studying linux command-line basics will be repaid quickly. Linux Command is a good place to start.

thank you for the reply. yes actually i am using an external drive because i don’t have enough space in my system hard disk. and for the external hard drive it is in NTFS format

i was able to call on the command after i rename the hard drive. thank you i really appreciate


this is what is currently showing me

It should be like this,
mt_prep_snap 20200121 /media/bilyamin/external/preprocessing/project/INSAR_20200121/ 0.4

1 Like

okay. thank you sir

1 Like



i dont know why the error in image 1 above and when i tried processing it in matlab i got that error in image 2 above

Try to install this StaMPS code, and rerun mt_prep_snap once.
dbekaert/StaMPS: Stanford Method for Persistent Scatterers (github.com)


this is what i have been seeing after trying so many time

It’s ok. Try to run mt_prep_snap command



@suribabu is till the same thing. here image 1 is the error i have getting while image 2 is my stamps_config i dont know if the problem is from there

Try this once, best post by @ABraun

wow it works this time around after installing gcc version 7. thank you sir i really appreciate

1 Like

please i want to install stamps but i have error
click@click:/media/click/New Volume1/PHD/daren/psi/New folder/StaMPS-4.1-beta/src$ sudo su
[sudo] password for click:
root@click:/media/click/New Volume1/PHD/daren/psi/New folder/StaMPS-4.1-beta/src# sudo make
g++ -O3 -c -o calamp.o calamp.c
calamp.c: In function ‘int cshortswap(std::complex)’:
calamp.c:50:1: warning: no return statement in function returning non-void [-Wreturn-type]
50 | }
| ^
calamp.c: In function ‘int cfloatswap(std::complex
)’:
calamp.c:66:1: warning: no return statement in function returning non-void [-Wreturn-type]
66 | }
| ^
calamp.c: In function ‘int main(int, char**)’:
calamp.c:129:21: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
129 | for (register int x=0; x<width; x++) // for each pixel in range
| ^
Assembler messages:
Fatal error: can’t create calamp.o: Read-only file system
make: *** [: calamp.o] Error 1
root@click:/media/click/New Volume1/PHD/daren/psi/New folder/StaMPS-4.1-beta/src# sudo make install
g++ -O3 -c -o calamp.o calamp.c
calamp.c: In function ‘int cshortswap(std::complex)’:
calamp.c:50:1: warning: no return statement in function returning non-void [-Wreturn-type]
50 | }
| ^
calamp.c: In function ‘int cfloatswap(std::complex
)’:
calamp.c:66:1: warning: no return statement in function returning non-void [-Wreturn-type]
66 | }
| ^
calamp.c: In function ‘int main(int, char**)’:
calamp.c:129:21: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
129 | for (register int x=0; x<width; x++) // for each pixel in range
| ^
Assembler messages:
Fatal error: can’t create calamp.o: Read-only file system
root@click:/media/click/New Volume1/PHD/daren/psi/New folder/StaMPS-4.1-beta/src#
please help

You appear to be using an external file system. Linux installs to external drives often fail if the external filesystem is not a linux filesystem (ext4, xfs, etc).

You should not be using sudo to run make. Depending on the mount options and file system, the “root” user may not have access to your external file system.

You will find it helpful to spend some time learning some basic linux concepts and procedures. For a two-week course in ocean remote sensing we found that devoting a couple afternoon “practicals” to linux basics greatly reduced the time lost later due to problems using linux.

You may need to clean up file ownership and permissions resulting from incorrect application of sudo.

1 Like