Skip to content

Commit

Permalink
Update mt_extract_cands_gmtsar_sbas
Browse files Browse the repository at this point in the history
master_id added
  • Loading branch information
dedetmix authored Apr 26, 2018
1 parent 8d4d317 commit 878c230
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mt_extract_cands_gmtsar_sbas
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
# extract data for candidiate pixels
#

# make sure you have (files): list , date_dsc_no_master.txt , list_sbas (generate automatically)
# make sure you have (files): list , date_no_master.txt , list_sbas (generate automatically)

# Parameter (should be not changed) #
crop=$1
threshold=$2
region=$3
suffix=$4
#####################################
dir=$(pwd)

Expand Down Expand Up @@ -61,7 +62,8 @@ rm tmp.xy tmp.ll tmp.llt tmp.lltn
#generate list, before modify date_asc.txt without date for master!

rm -f list
cat date_no_master.txt | while read date; do slave_id=$(grep SC_clock_start "S1A"$date"_ALL_F1".PRM | awk '{printf("%d",int($3))}'); echo "2016198_"$slave_id "S1A""$date""_ALL_F1" $date >> list; done
master_id=$(grep SC_clock_start master.PRM | awk '{printf("%d",int($3))}')
cat date_no_master.txt | while read date; do slave_id=$(grep SC_clock_start "S1A"$date"_ALL_"$suffix"".PRM | awk '{printf("%d",int($3))}'); echo $master_id"_"$slave_id "S1A""$date""_ALL_"$suffix"" $date >> list; done

cat list | while read name prm date
do
Expand Down

0 comments on commit 878c230

Please sign in to comment.