Debian Codegraph @

bin/heightamb

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/usr/bin/csh -f
2 #%// BK 25-May-2000
3 #%// $Revision: 1.1 $ $Date: 2005/07/28 09:27:00 $
4
5
6 ### Initialize center pixel #########################
7 set lambda = 0.0565646
8 set R = 850000.0
9 set theta = 23.0
10
11
12
13 ### Info ############################################
14 set PRG = `basename "$0"`
15 set VER = "v1.1, BK software"
16 set AUT = "Bert Kampes, (c)1999-2000"
17 echo "$PRG $VER, $AUT"
18 echo " "
19 echo " Computes indicative height ambiguity for flat terrain"
20 echo " as function of perpendicular baseline. A larger Bperp"
21 echo " yields more sensitivity to height, i.e., a decreasing"
22 echo " height ambiguity (the height difference corresponding"
23 echo " to a 2pi phase difference (a fringe))."
24 echo " "
25 echo "Program parameters (ERS):"
26 echo "-------------------------"
27 echo " lambda: $lambda [m]"
28 echo " R1: $R [m]"
29 echo " theta: $theta [deg]"
30 set theta = `echo "(a(1.0)/45.0)*$theta" | bc -l`
31 echo " theta: $theta [rad]"
32 echo " terrain slope: 0.0 [rad]"
33 echo " "
34 echo "EXAMPLES:"
35 echo " $PRG"
36 echo " $PRG 100"
37 echo " $PRG 25 50 100 200 400 800"
38
39
40
41 ### Check interactive or batch ######################
42 if ( $#argv == 0 ) then
43 echo " "
44 echo "Input perp. Baseline [m]: "
45 #sin is not known in standard awk
46 # awk '{ \
47 # ha=('$lambda' * '$R' * sin( '$theta' )/(-2.0 * $1 ) ) \
48 # print "Height ambiguity = " ha "\n"\
49 # }'
50 set b = $<
51 set ha = `echo "$lambda * $R * s ( $theta ) / ( -2.0 * $b )" | bc -l`
52 echo " "
53 echo "Bperp = $b [m] ---> Height ambiguity = $ha [m/2pi]"
54 ### Handle input arguments.
55 else
56 foreach b ( $* )
57 set ha = `echo "$lambda * $R * s ( $theta ) / ( -2.0 * $b )" | bc -l`
58 echo " "
59 echo "Bperp = $b [m] ---> Height ambiguity = $ha [m/2pi]"
60 end
61 echo " "
62 endif
63
64 ### EOF