Prepare Stack to Stamps with TerrasarX data (ISCE)

Dear
I’m trying to prepare stack with stripmapp to STAMPS with https://github.com/isce-framework/isce2/blob/master/contrib/stack/stripmapStack/README.md

But in the case of Sentinel then I run make_single… in the case of TerrasarX what are the steps to prepare after run_files??

Thanks
Pedro

Maybe it is worth directly asking this in the ISCE forum: http://earthdef.caltech.edu/projects/isce_forum/boards/4

1 Like

Here are the steps I took to prepare StripmapStack (ISCE) to Stamps PS using TerraSARX data.

However, I received an error in Step 1 of StaMPS…

  1.   In ISCE prep_TSX.py then stackStripMap.py processing with workflow  –W slc:
    
            i.          !stackStripMap.py -s /home/toni/WCF_TerraSARX_processing/scenes/HS_021/SLC/ -d /home/toni/WCF_TerraSARX_processing/scenes/HS_021/DEM/demLat*.dem.wgs84 -t 44 -a 2 -r 2 -u snaphu -W slc --nofocus --zero
    
            ii.         Ran all files run_files 1-7 using: !run_files/run_0*
    
  2.  In terminal StaMPS processing dir:
    
            i.          $ make_single_reference_stack_isce  input_file
    

Input_file:
source_data slc_stack
slc_stack_path /home/toni/WCF_TerraSARX_processing/scenes/HS_021/merged/SLC/
slc_stack_reference 20161118
slc_stack_geom_path /home/toni/WCF_TerraSARX_processing/scenes/HS_021/merged/geom_reference/
slc_stack_baseline_path /home/toni/WCF_TerraSARX_processing/scenes/HS_021/merged/baselines/
maskfile /home/toni//WCF_TerraSARX_processing/scenes/HS_021/merged/geom_reference/shadowMask.rdr
range_looks 2
azimuth_looks 2
aspect_ratio 4
lambda 0.056
slc_suffix
geom_suffix

          ii.          $ cd INSAR_20161118/

          iii.          $ mt_prep_isce 0.4

          iv.          $ matlab
  1.  In Matlab command window: >> stamps
    
           i.          After running stamps it goes to the PATCH_1 dir /home/toni/WCF_TerraSARX_processing/scenes/HS_021/StaMPS/INSAR_20161118/PATCH_1
    
           ii.          Then error message:
    

STAMPS: Will process patch subdirectories

STAMPS: ########################################

STAMPS: ################ Step 1 ################

STAMPS: ########################################

STAMPS: Directory is PATCH_1

Found inc angle file, will load the data

Loading data into Matlab…

SETPARM: heading = -169.7074

SETPARM: lambda = 0.056

Index in position 1 exceeds array bounds.

Error in llh2local (line 39)

z=llh(2,:)~=0;

Error in ps_load_initial_isce (line 171)

xy=llh2local(lonlat’,ll0)*1000;

Error in stamps (line 281)

                ps_load_initial_isce(data_inc) 

Has anyone ever received this error message? Any idea how to address it?
I have attached the directory layout.
I’ve realized that the selpsc_patch.c script is producing empty pscands.1.ij and pscands.1.da files which in return makes the pscands.1.hgt , pscands.1.ll, and pscands.1.ph


pscands.1.ph
files empty. Any help will be appreciated!

I am also getting the same error. One more things we experienced which is - while using StaMPS-4.1-beta version, then there is no load.isce.m file under StaMPS-4.1-beta/matlab. So if we process stamps(1,1), then load_isce error is also coming. If we are using StaMPS-master version, where load_isce.m file is there but the above error related to ps_load_initial_isce(data_inc) is coming. Do you get the solution of these errors. If yes, kindly help me also.

Thanks
Hari Shankar

Hi I still haven’t solved this problem as yet!

@hariiirs Are you also using TerraSARX data? I tried with Sentinel and still received the same error.

Hi

I have not tried for TerraSAR data. I am only trying Sentinel-1 data.

I noticed that outside of the empty pscands.* files I was also seeing a Segmentation Fault (core dumped) error message while running mt_prep_isce
I referenced this snap forum to address this:

Solved by
Installing g+±7 and gcc-7 (just incase, to make sure both are present)
Changing the compiler from CC = g++ to CC = g+±7 in the StaMPS_master/src/Makefile
cd StaMPS_master/src
make
make install

my PATCH_* pscands.* files are no longer empty

1 Like