StaMPS 4.1 beta Installation in Ubuntu 18.04

Command executed at two locations:

  1. In the src folder

  1. In the main folder

when bash is executed, found no result. with “tcsh” , this message is received.

ubuntu-18043-psinsar@ubuntu18043psinsar-VirtualBox:~/Desktop/STAMPS/StaMPS-4.1-beta$ source StaMPS_CONFIG.bashrc
bash: StaMPS_CONFIG.bashrc: No such file or directory
ubuntu-18043-psinsar@ubuntu18043psinsar-VirtualBox:~/Desktop/STAMPS/StaMPS-4.1-beta$ source StaMPS_CONFIG.tcsh

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

Command ‘setenv’ not found, did you mean:

command ‘getenv’ from snap getenv (0.3.0)

See 'snap info ’ for additional versions.

bash: StaMPS_CONFIG.tcsh: line 61: syntax error near unexpected token (' bash: StaMPS_CONFIG.tcsh: line 61: set path = ( $path $STAMPS/bin $MY_SCR $INT_BIN $INT_SCR $OUR_SCR $DORIS_SCR $GETORB_BIN $DORIS_BIN $TRIANGLE_BIN $SNAPHU_BIN )’

please try this

  1. configure the file StaMPS.tcsh
  2. navigate to the StaMPS main directory (not the bin or src subfolder)
  3. type tcsh
  4. type source StaMPS.tcsh

Do I need to change the installation path variable in the both files:

  1. StaMPS_CONFIG.bash and
  2. StaMPS_CONFIG.tcsh

According to your screenshot, this worked with tcsh

But you have to edit this config file accordingly.
You need to define at least the directories of

STAMPS
TRIANGLE
SNAPHU
MATLABPATH

Otherwise you cannot execute the StaMPS scripts.

Hi ABraun,

I have changed the path varaibles.

How could I confirm that StaMPS is Installed ?

if you now enter

  • mt_prep_snap you should get a description of the algorithm
  • snaphu you should get a list of snaphu configuration flags
  • matlab the matlab software should start

If you get “No, such file or directory” the corresponding line in the config file does not point to the correct location.

Hope, it is installed.

ubuntu-18043-psinsar@ubuntu18043psinsar-VirtualBox:~/Desktop/STAMPS/StaMPS-4.1-beta$ tcsh
ubuntu18043psinsar-VirtualBox:~/Desktop/STAMPS/StaMPS-4.1-beta> source StaMPS_CONFIG.tcsh
ubuntu18043psinsar-VirtualBox:~/Desktop/STAMPS/StaMPS-4.1-beta> mt_prep_snap
mt_prep_snap Andy Hooper, August 2017

usage: mt_prep_snap yyyymmdd datadir da_thresh [rg_patches az_patches rg_overlap az_overlap maskfile]
yyyymmdd = master date
datadir = data directory (with expected structure)
da_thresh = (delta) amplitude dispersion threshold
typical values: 0.4 for PS, 0.6 for SB
rg_patches (default 1) = number of patches in range
az_patches (default 1) = number of patches in azimuth
rg_overlap (default 50) = overlapping pixels between patches in range
az_overlap (default 50) = overlapping pixels between patches in azimuth
maskfile (optional) char file, same dimensions as slcs, 0 to include, 1 otherwise

ubuntu18043psinsar-VirtualBox:~/Desktop/STAMPS/StaMPS-4.1-beta> snaphu

snaphu v1.4.2
usage: snaphu [options] infile linelength [options]
most common options:
-t use topography mode costs (default)
-d use deformation mode costs
-s use smooth-solution mode costs
-f read configuration parameters from file
-o write output to file
-a read amplitude data from file
-c read correlation data from file
-b perpendicular baseline (meters)
-i do initialization and exit
-l log runtime parameters to file
-v give verbose output
–mst use MST algorithm for initialization (default)
–mcf use MCF algorithm for initialization

type snaphu -h for a complete list of options

ubuntu18043psinsar-VirtualBox:~/Desktop/STAMPS/StaMPS-4.1-beta> matlab
MATLAB is selecting SOFTWARE OPENGL rendering.

looks alright - good job! Then you are ready to go.

Thanks for your support.

I will revert if any issues during execution.

ubuntu-18043-psinsar@ubuntu18043psinsar-VirtualBox:~/Desktop/test/INSAR_20180114$ mt_prep_snap 20180114 /home/ubuntu-18043-psinsar/Desktop/test/INSAR_20180114 0.4 3 2 50 200

I have executed the above command. and 6 Patch folders are generated.

Do I need to execute all 8 steps as shown in manual or can I skip either one ?

no, all 8 steps are required, but it is good to perform one after another and keep track of the outputs.
stamps(1,1)
stamps(2,2)

But the commands are not with clear syntax for next steps in the manual.

Could you suggest how to frame the commands with corresponding syntax from step 2 on wards …!

once you have completed the preparation of the patches you simply start matlab and move to your working directory
then you type getparm to see if all parameters are loaded correctly and proceed with stamps(1,1)

I am getting this screen upon executing the command “getparms”

in the manual the command is “getparm”

which one is correct and how to resolve this error ?

yes, getparm is correct, but matlab needs to find this command.
Please add the folder of the StaMPS scripts to the environment variables of Matlab:
grafik

I furthermore recommend not to mix the export from SNAP with the processing files of StaMPS in one folder.

Are the matlab commands like follows for all 8 steps …!

.>> stamps(1,1)
.>> stamps(2,2)
.>> stamps(3,3)
.>> stamps(4,4)
.>> stamps(5,5)
.>> stamps(6,6)
.>> stamps(7,7)
.>> stamps(8,8)

yes. But as I said, it is important what the script prints.

I created a new directory and executed “mt_prep_snap” there itself.

stamps(1,1) executed success fully,
stamps(2,2) getting an error as follows