-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmt_extract_info_gmtsar_SB
executable file
·39 lines (33 loc) · 1.09 KB
/
mt_extract_info_gmtsar_SB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#
# Extract info from various files for use by StaMPS
#
# make sure you have (files): intf_SB_list , date_dsc_no_master.txt
raw=$1
raw_orig=$2
topo=$3
SLC=$4
heading=$5
master_date=$6
SLC_OSF="1" # check if oversampled or not
echo $SLC_OSF > slc_osfactor.1.in # put oversampling factor to file
# Create other input files for PS SBAS candidates, make sure folder stack/PS has been processed, if not:
#cp ../../bperp.1.in .
awk '{printf("%0.4f\n", $5)}' $raw_orig/baseline_table.dat | sed '1d' > bperp.1.in
#cp ../../day.1.in .
cp date_no_master.txt day.1.in
#cp ../../master_day.1.in .
echo "$master_date" > master_day.1.in #put your date of super master here
rm -f ifgday.1.in
cat intf_SB_list.in | while read date_master date_slave
do
echo $date_master $date_slave >> ifgday.1.in
done
echo $heading > heading.1.in # for Sentinel-1 ASC: "-12.00707218611660e"
cp $raw/*LED .
cp $raw/*.PRM .
cp $topo/master.PRM .
ln -s -f $topo/trans.dat .
ln -s -f $topo/dem.grd .
ln -s -f $SLC/scatter_SB.grd .
grep radar_wavelength $topo/master.PRM | awk '{print $3}' > lambda.1.in # in meters