-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmt_extract_info_gmtsar_SM
executable file
·39 lines (33 loc) · 1.1 KB
/
mt_extract_info_gmtsar_SM
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_SM_list , date_dsc_no_master.txt
raw=$1
raw_orig=$2
topo=$3
heading=$4
master_date=$5
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 candidates
if [ -f bperp.1.in ]; then
echo "File bperp.1.in exists."
else
echo "File bperp.1.in does not exist."
awk '{printf("%0.4f\n", $5)}' $raw_orig/baseline_table.dat | sed '1d' > bperp.1.in
cp date_no_master.txt day.1.in
echo "$master_date" > master_day.1.in
grep radar_wavelength $topo/master.PRM | awk '{print $3}' > lambda.1.in # in meters
fi
#awk '{print substr($0,4,8)}' baseline_info.dat > day.1.in
#awk '{printf("%d\n", $1)}' baseline_info.dat > day.1.in
#awk '{print $3}' list > day.1.in
#echo "19930112" > master_day.1.in
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 $raw/scatter_SM.grd .