Forest Service Research Note U.S.O.A. PSW-180

advertisement
Delineating Landscape View Areas
a computer approach
Elliot l. Amidon
U.S.O.A.
Forest Service
Research Note
PSW-180
ABSTRACT: Th e terrain visibl e from a
gi ven po i nt can be determined quickly
and effic i ently by a computer. A FORTRAN subp rogram--called VIEWIT--has
been deve loped for this purpose .
I npu t consists of data on elevations,
by coo r di nat e s, which can be obtained
fr om maps or a e rial photos. The computer will p r oduc e an ove rlay that
shows t he maximum area vi sible from
Both the oban obse rvation point.
se rvati on po i nt and the len~th of
line- o f- sight are variable. Th1s new
techni que makes it unnecessary to draw
over l ays manually .
RETRIEVAL TERMS :
view areas; scene
area ana lysis ; computer programs .
OXFORD :
907 . 1 : U712 . 2- -U681.3.
Gary H. Elsner
Whether viewed from an observation point
or a moving vehicle, a forest landscape has
distinctive esthetic value. Wildland managers have begun to delineate the boundaries
·,...: of. views as a step toward protecting scenic
·values. Delineating maximum visible areas
can have other benefits, as for example, in
evaluating alternative sites for locating
fire towers or scenic overlooks.
To identify view areas, the forester must
go out in the field. He can outline a boundary on a map, as seen from one or more vantage points. Boundaries will vary--depending on the observer's particular position,
surrounding topography, visibility, and the
observer himself. Field work will always be
required to · determine final boundaries. But
a map overlay displaying the maximum area
visible for the particular topography would
reduce field work .
An overlay can be drawn manually by constructing terrain profiles. 1 The cost of
constructing hundreds of profiles would, however, be prohibitive. The military services
have encountered similar problems in calculating line-of-sight and low-altitude flight
paths. Our review of military algorithms
suggested that a digital computer program
would offer an economically feasible procedure for delineating view areas. 2 But existing computer programs were not directly suited
for delineating visible areas. A new program
was called for.
We have developed a FORTRAN subprogram-called VIEWIT--to compute the area visible
from an observer's position. Computations
of observations of 1-1/2-mile radius required only 1 second on a UNIVAC 1108 computer
(fig . 1). The radius of the view area can
be varied to allow for analyzing different
size areas from the same vantage point . Computation time using the new procedure was
50 times faster than that with other computer programs . And it is no longer necessary to draw overlays manually.
(Reaffirmed and reprinted, 1976. See also General Technical Report PSW-11 and Research
Paper PSW-91 issued by this Station.)
Figure 1.--Area vi s ibl e within
1-1 / 2 miles of the observer ' s
position for the hypoth e tical
data shown in Figure 2.
The
number 11 designates visible
points .
SCALIN
S IZ E!
SIZEJ RADIUS lOBS JOBS KARDS
316Bo.oo
s. o o
6.oo
1.so
18
28
52
B88888888888888888888888888888888888888888888888888888888888888886888B88
888888888888888888888888888888888888888888888888888888888888888888888888
888888888888ij8888888888888888888888888888B888888888888888888888888888888
888888888888888888888888888888888B88888888888888888888888888888888888888
8888B8888888888888888888888888888888888888888888888888888888888888888888
8888888888888888888B8888888888888B88888888888888888888888888888888888888
88888B888888888888888888888888888888888888888888888888A88888888888888888
888888888888888888888B88888888888888888888888888888888888888888888888888
888888888888888888888888888888888888888888888888888888888888888888888888
8888888888888888888888888888888888 0888888888888888888888888888888888888
888888888888ij8888888888888 0 0 0 0 0 0 0 0 08888888888888888888888888888
8888888888888888888888 0 0 0 0 0 0 0 0 0 0 0 0 0888888888888888888888888
888888888888888888 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 088888888888888888888
8888888888888888 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0888888888888888888
88888888888888 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 08888888888888888
ij88888888888 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 088888888888888
888888888888 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 01188888888888888
8888888888 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 011 0 0888888888888
8888888888 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0888888888888
88888888 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 08888888888
88888888 0 0 0 0111111 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 08888888888
888888 0 0 0 0 0 0 0 011 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 088888888
ij88888 0 0 0 0 0 0 0 01111 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 088888888
888888 0 0 0 0 0 0 0 01111 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 088888888
888888 0 0 0 0 0 0 0111111 011 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 088888888
888888 0 0 0 011 011111111111111 0 0 011 0 0 0 0 0 0 0 0 0 0 0 088888888
888888 0 0 011 0 0111111111111111111
l 0 0 0 0 0 0 0 0 088888888
8888 o 011 o o 0111111111111111111. Obssrvsr 1 o o o o o o o o o 0888888
888888 0 011 0 0111111 0111111111111
l 0 0 0 0 0 0 0 0 088888888
888888 011 0 0 01111 01111111111 0111111 0 0 0 0 0 0 0 0 0 0 0 088888888
888888 011 0 011 0 0 011 0 011 0 0 0111111 0 0 0 0 0 0 0 0 0 0 088888888
888888 0 0 01111 0 0 0 0 0 0 0 0 0111111 0 0 0 0 0 0 0 0 0 0 0 088888888
888888 01111111111 0 0 0 0 0 0 01111111111 0 0 0 0 0 0 0 0 0 0 088888888
888888 011111111 0 0 0 0 0 01111 0 0 0 011 0 0 0 0 0 0 0 0 0 0 088888888
8888888811 011 0 0 0 0 0 011 011 0 011 0 0 0 0 011 0 0 0 0 0 08888888888
8888888811 0 0 0 011 0 0 011 0 01111 0 011 0 0 0 011 0 0 0 0 08888888888
888888888811 0 0 011111111 0 011111111 0 0 0 0 01111 0 0 0 0888888888888
888888888811 01111 011111111111111111111 0 0 0 01111 011 0 0888888888888
8888888888881111 011 0 011111111111111111111 0 0 0 0 011 088888888888888
88888888888811 0 0111111 011111111111111111111 0 0 011 0 088888888888888
88888888888888 0 0 0111111 0111111111111111111 0 0 0 0118888888888888888
8888888888888888 0 0111111111111111111 011 01111 0 0 0888888888888888888
8ij8888888888888888 01111111111111111111111111111 0 088888888888888888888
88888888888888888888881111111111 0 0 01111 0 011888888888888888888888888
88888888888888888888888d881111 0 0 0 0 0 0 08888888888888888888888888888
88888888ij8888888888888888888888888 0888888888888888888888888888A8888888A
8888888888888888888888888888888888888888888888888888888888888888888888AA
8888888888888888888~8888888888888888888888888888888888888888888888888888
888888888888888888888888888888888888888888888888888888888888888888888888
888888888888888888888888888888888888888888888888888888888888888888888888
8888888888888888888888888888e8888888888888888888888888888888888888888888
868888888888888888888888888888888888888888888888888888888888888888888888
ttillllf !IIIII tllittrlf All Itt l!l'lillllfltfll tt8 ttl 14ft It" 41t IIIII 1118'U' If A lt8'f 81t illl If lit" 1181,18 lf8 '-8 If C) lfCJ IP]It CJ ~O SO S l 51
If., .. ., .. '"q" IIUifll illllll!l't811 81f8 ItS._,. II" ltRitR lfl'l lt81f81481t 81t811 AIIR lf8 lf 8 118148148 I! C) Iff) Ill) SO 51 51 52
~0~0 ~0411'11t 'tlt'\41 RltiJII IJif Rltl 41" 111'141fllfl'l flf' fll'lltA lf8 q Sit 81f1Jif ,lfcU•R 14R 1t8'-llf'J tt'JifiJ If'\ 50 51 !;2 52
41'\11 q11q IIIU q11 qllctii811111111Btlfl 418 It Pill Ill 1111 1t8 .. l'lct8 ltlllfCJ SO !;fHt~lt81f8 Ill 8 lt81f'J if 'JitoCJ 50 51 51 52 52
Ill 811 1'1411141'111 'ttl '\11'\11811811 8118 "" 'H' IIIII If 1'1 If 'I 118111 fl: If It 41'\11')~0 S Oli~ 118 418 lt81fiJ lt')ltCJSOSO 51 51 51 5 2
111811 II If Ill q "'tt 81tfllllctlf 8418118118118 lfl'lltfll .. l'l 14• lfl!llt ~ 111114'\11 91r:i0 !. O'f~IIBitlll ql) .. q 50'0 5 151 51 51 S 1 51
tiRII IIIII'!
811 Ill It II1Uiill8411'1 118 .. 8 olfll It IIi If IUIII lfq ct'\lfCJif'11t 911~'4 ft lfCUtiJ lt'li&CJ 50 50 51 51 SO 50 50 51 51
It All flit, II fill All A If f"811111t8 lf8 118 ItA filii ItA"" fl8 ltq lt fJ ifl)'f 811 8'4 f!IIR 118118 IICJ49 50 SO If CJII'\51 51 5251
IIRII qlf !IIIII IIIII 8111'111 "" 111q 8fl81t81111111Rit8 1t8 If 8 •U
lfqlf&lt 8118 If Ill If A lf81fR ftC) It 81f8118't 850 51 51 5251
11'\11 qll'l.fl:lt ftltl'llt fllt8. 81tl'llt8 "'l'lllflltRitl'llfllltfllfR Ifill qa~e Bit l'llf lUll 118118 lf8 1118 fl 8 lfllllt'\50 51 51 5151
It 11r:i01i I 50111 t\ltR 8111811811 8fl8 .. a It flit RIf II; 111'1 11181fl'l lf8 Ill Blf 81tftlfi'IIUII ItS lf81f8 lf8 lt8'fl'5051 51 5151 50
Ill 1C.051 SO If "It II It '11tll 't8 .. fllf8 111111 ItA"'""~'~"'' Ill 8tH' 118 4811 aq P lfl'llflll lf8 lf8 It 8&18 tiRtiR SOSl 51 515050
lllq.-,nc.J .-.a-. cti)QiiOIII '\tt BI)Oit'l11111tft IIA'tl'lll" lt8 'till lt8 lt84 81f81t 8'4 111 "'8 11181t8118 lt8 &lllllt1JS151 5150 50
Ill -..-,n.-,o 51 !tOS I II) I ')Oitq-; 151-; 1 SO llliltiiJ 118118 41'111 811 8 1! 8't IPtl'l&l~llll! ltiJit CJ 49 lf91tlllltCJSOSO 505050
I)Oif II!C.OC.I r; I 'i1~ ~~ 1 ~n~ I Sllr:i 151 5 0~ I If cue 'tl'llfiJ '411!11 CJIIIJ SO 505051 51 l)"tltqlt8 lf9 50 50 50 50 50
r;otact'irt-;t 51~ ,SJ~2SOIIi 1 C.211i ,51 I) I I) I t;n,.qr,nr,nst St-;t .-, 2525251 S2Srt"'IJif8t18501fCJ5050ltiJ
lllll!~t11tq~051 C. 2 ~ 15151 li1S,'i 152'l?lli1'it 51 ')1 51 1)15 l 'i l'ilf~lf545l5 2 51501if1Jiif81f81tl'II11S051'1
""" llllt'l'\05 1 ~2 1)2')7 ~l~ ~'iS 5" 'i1') 151 ~ 3531) ~ 5 ~ liJ Sit C. &I 5 G Sfi555l 5 2 ~ I SO 1)01191t81t850SI 50
11 lll1t 71t IJI)I 51 Sl 57515, Sit 5S C.ft ..,li C.'\'\11 'iS 55 .-, .-, ~-; -; S51f r,.; 51 5551f5751 5050fiiJ SOifiJ1tA505 l SO
111 Jlt 7'•0'\1 'iII) I 515151tC.Ii5 J'iJ 'iJ 'if.l)lilj f> 5fi C)C.51\SII Slf 5 t; SF.Sc;5151 51 SOSOC.050"'CJ1t8505150
llf,lt 1111 1.-.ns I 'it S1S l 5 5~fi ~ J C. .. c, J ~"C.Ii St 5 J 5 7 ~li 'i'i5556 SSSitS ]52 51 51 51 C.OS01t8 "'8 ltCJ 50119
11 7'tl'lltll!'i051 ')I 5 71) t')lll5'i 'l 6 1) 7S7C",F. t; r') 15 8 11) 7 ') ,1) 75 f. C.75'iSl5lS 2 52 S2 511)0fi1Jit9119111911CJIIIIJ
11111111 71f'lll q51 li I C.l 525 JC.It 55 I) 71) 7 .-.r~ II) 7 C.,. sq 5 7 "l 7 58 S 7'\fi 55515152 52 51 5150'tiJS01t91if~lt,lt9
lltf,ltlte CJII q~e -.c.n snst 5J Sit Sft c; 1 c;G ~'lC\ 7 c;"'s" 1)8 511 c;9s 75t. ss s-; 515151 51 so ~ Oi119S050119•CJtt9
lt61t 7t! Plf i11'4 ctC\051 IllS II SS":161r:if. Sfi li'\'i 7 ~fl: 60 S'l511! 'iiJS 75 75 7 555"' 5152 51 50411 IIIIJS0501119lt9SO
It""'
It"
It
•
5
G
7
8
~
an
II
12
ll
10
15
1G
11
18
I'
20
21
Z2
21
z•
25
t!~ltRitqlfqC.OC.ISI.-,lS~'l~C.~'i-'i4'i"'l)r'iRSqf.o~n 5 ~581)ft56SI)5111SJS l 51SO'iOfl951501t95050
26
f&l q"' ql)ll'l I~ 7 515 liJII Slli 1 f\ ~ r,c. S'\ 'i 7 59fd F.O C.CJ SIJS f 56 511153515 l ')0 50 SO 505151 SO 5050
If 7t~ ftlf P 1t q§O'lO-, l S14l Jl) '~1S2 f\ l'\lf ~S-; 75qfi16l Gfl SCJ C. 155 SitS 152 51 Sl SOSOSO 5 l 51 50 5151
lllf't'l&l'llfqtt q-, 1 511i1'i ·~151 '>1!.1f "•'i -,J t; A 5'1£060')1JS7'iFiSSSl5l51 51 51 5 15050 5 151505051
q 'Pit ftlt't-11!50'>051 5'52.._1 Sl'i't 51) I)Fi58'\"S8 S<t5,'iCJS1S75!i51!.251 5152 51 5 1 5 2 5251515051
.. ,.. 7 .. ,,.q5o~ns1 c; 1 snc; 1 c;1s1t r,s-;6C.7'i65757SASII!S8"1f. s11 !t3S25t szo;2 5251 5 252525151 st
"7111 A't<t" qt11Jii0S05050') I 52') 1 ')5 'ill) ')55"\ 56 5 J Sfl5'1581it; 51151525252 515 2 52 5 2 515251 51 52
1t7" rlll!lflllll '"'q"qsos I 'i152'i 15" 'l51t C.SS J 51 SA 5'1 S8C.6 5" 51525 351 S J S l o; l 53515152 5253
If(, It 7ctfl"~'~" ftltftSOS 1 S I 5 I 5 IIJ7 'il 'ilf ~55,5656 S 758 5'5 755515»15"' 5115- Sill Sit !d5" 515153 511
1tf.lt 111111 ""' 71flll snsn" IJ'i I~ l C.' 5' C. I! S l 'if.SS!t557 58 58'\ 7 5 5 5111 Slf !tS!tlf ~~~Sit!»"' 51511 Sit Sit 5151
u.-. '"Ill 'tilt"'"~~~" qllftSOS7 57 S152'i lSit s"' 55S'isr. s Jseo;' 56 5sssss 511 s" s11 s• 51511 s• 515151
27
28
t~f.llll'lqCJII,~Oit1111'iOSOIJ151515l~JSJS1tSSC.S56~75JC.J 5 65555555"51t51t5"'53Sit51t5JSl51t
llfllfctllq'in'>l"'qq1'i05lSISlS"'SII'i'iC.~~-~5~~!t65757'i~ S G~S~SS55'45t~ 5 't5lSlS'Sif51t51t5fl
-"'~O~O~l~t50~0~0Sl~151~]55C.5~~S~SG'>&'i~S858 ~ 7SG!.SSSS~SitS115l~lSJS•SitSII5115l
C. I~ 1 51~ I~ l 505 l 5052S 15'4 !> 15~ C.S'jf-565' !:17 5 8 58 58575 7 56 SSS't 5111 5 1 Sl'il5l5 15' Sit Sit 53
C.7~1~?~1SI'it515151~1C.~'\SC.SI)~~~~1SJ57 5 ~~158 5 757St555 5 Sif 5 1t5l5153Sl515fi51Sl
'17~ ?l)f' ~ 152 52 5? ~lSl C. l55'>'i 11£. rJ; 'i t; SRSfl "' "t;q I) I 581) JS 7 57555• 5"' 511535115 lSlSl515l5l
1i I r, 1'l 11!. lS JS J5lC.7 1i l-; l 'i'i 'i& t; 7'\ 711) f 511:60 s qr;.ql)'1~'lC. I'IS 7 S 755Sfl Sit Sit Sit 5153 51535)5 ]51
SOli I 'i? 'JI55C."Iilf 5 S5 J ~ lS!'J 5757 c;q sq C.'l5«t 'ill! Slli 511!59 C. 85 1 57SS 5 1t Sill 5111 51 SlSJSl 51515151
37
38
" " il
lt«t'i I ')O•. ls,Ssr.'iS'i111)4 '\'4 sc; II) JC.IJ ~qljq~ 7 58 !..A II) 1 "8 58 'i RS 7 56 S JSij 51'1 153 515153 51515)5]
qql) 1 5 ? !d 55'i 7C.7~6 56Cic;5 J C. Ill l)q frt51'1 5 7 'i 7 'i 71it;5 6 5 7'iA 5 fl 5 7 575" S• S 1511)1535 151515151
qqr, 1 C. 1 'i' ~GS~ lr) 7') 75 J'i65fil) f sq 'lq S, C. 7 5£. SLSf>C.f'S 7'i l'l SA Sl 565fi 55 51515252525252 5351
2~
30
ll
32
n
l•
35
36
l~
•o
01
02
•l
••
05
.6
01
08
't"'>0~75-SG'iJ'i7~6S6'iC.')S'iJ581Jf')PI)7SbS5S5'i~S61r:i7Sft!.JS65~ S it51Slli2525252S15252
. , , 1 '? s• 5t5 ""'555555H 151 '15" '15G 'S 5S "55,. 51515S55 s• 515152 525252515152
.,
lfct'il'i?~lt56S~~S~qSIIS~S S 'i~'i~'i~SAS757SS~&I 5 1i51f'iJ;5756S55-5551f5]5252525253535l
SOC. I 5 11)111 56'ir• 'iSS a. 5 J'i 1S'i 'iG 1)£. C.') C. J S 7 56 55~1fll15J5 5 S75651t51f sa. Stt 5152 535152 5153 Sl
50
SOli,..,,. S'iS"iC.IiS"' 515l'i l'iS'ifi C.Sf\'ii)F. Sf 5>6 S'l'illll2 5)1)5 57 5655515153 52 5151154 51515151
51
52
-2-
Figure 2. --Hypothetical data
on terrain, with elevations
shown in hundreds of feet.
Th ey are the input to the
VIEWIT subprogram for determining areas visible from
given points.
The basic data required to compute
visible areas--elevations, by coordinates--are simple but voluminous (fig.
2) . They may be read directly from
topographic maps or interpreted stereoscopically from aerial photographs.
For a given data matrix of elevations
and radius, VIEWIT will compute the
ii
c
c
C
C
C
r
c
C
C
C
C
C
C
C
C
C
C
C
c
c
c
c
c
c
t:
C
r.
visible area from a specified observation point. The user must write a
mainline program to call VIEWIT and to
specify input and output for his particular data set.
The complete VIEWIT subprogram is
as follows:
fOR VIEWIToVIEWIT
SUBROUTINE VIEWITISCALINoSIZEioSIZEJoRAOIUSoiOBS•JOBSoKARDSolEVEL•
liNRIMoMOJMI
VTfWlT SELECTS THE CELLS LYING ON A CIRCLE Of ANY GIVEN RADIUS WITH
CENTER AT IOBSoJOBS.
TOBS
I COORDINATE Of OBSERVER
J COORDINATE Of OBSERVER
JOBS
TNIHM OUTPUT MATRIX. WHEN CELL !oJ IS OUTSIDE VISIBILITY RANGE•
INRTMIIoJI=B8 • WHEN IoJ IS VISIBLE fROM IOBSoJOBS• INRIM ~11 •
WHEN IoJ IS NOT VISIBLE• INIHM = 0 •
LEVEL INPUT MATRIX Of ELEVATIONS TN HUNDREDS OF fEET •
Kf
I DTMENSION DIRECTION COEFFICIENT • WHEN KF=-1 • I IS DECREMENT
ED fROM JOBS • WHEN Kf = 1 • I IS INCREMENTED fROM lOBS •
J<SITI J DIMENSION DIRECTTON COEFFICIENT. KSfll DECREMENTS J FROM JOBS ·o
KSIZI INCREMENTS J FROM JOBS
SCALIN RECIPROCAL Of MAP REPRESENTATIVE FRACTIONoE.G.o''3168D''•
SIZE! NO. Of CELLS PER INCHo MEASURED HORIZONTALLY
SIZEJ NO. Of CELLS PER INCH, MEASURED VERTICALLY
RADIUS RANGE OF VISIBILITY IN HILES
JRADlM RADIUS IN J CELL DIMENSION •
RAOIH SQUARE Of THE RADIUS fHYPOTENUSE OF RT TRIANGLE WHOSE VERTirES
ARE IJOBSoJOBSio fTOBSoJMiofToJMI •
DECREMENTED BASE OF TRIANGLE IN J CELL DIMENSION
JM
DECREMENTED BASE Of TRIANGLE IN MILES •
RM
LEfT-MOST CELL IN LINE OF SELLS THROUGH WHICH CIRCLE PASSES TO
Tll
LEFT Of IOBS • AT A GIVEN RM.
Rir.HT-MOST CELL IN THAT LINE •
u
LEfT - MOST CELL IN THAT LINE o TO RIGHl Of JOBS
TML
RIGHT- MOST CELL IN THAT LINE • TO RIGHT OF JOBS
!M
. OIMENSIO~ KSIZlolNRIMIHOJMolloLEVELIHDIMoll
KSill=-1
KSI21=1
SCALIN=63360/SCALTN
JRADJH =SIZEJ • SCALIN • RADlUS
SIZEI= SIZEI•SCALTN
SIZEJ = SIZEJ•SCALIN
RAOIM = RAOIUS••Z
JMIN = JOBS-JRADTH
TL=IOBS-1
IH=IOBS+l
RM=RADTUS
JM=RH•SJ2'E.J
FTRST SPECIAL CASEoPERFOPMED ONCEoAVOIDING DIVISION BY ZERO
M= JOBS
Kf=O
• DO ZZ L =lo 2
N=JOBS+KS!LI•JM
CALL GENRAYIIOBSoJOSStMoNoKFol•KSoiNRIMoLEVELoHO!H)
22 CONTINUE
JBEG=JMIN+l
DO 30 JY =JBEGoJOBS
JH=JH-]
RM = RM - 1./SJZEJ
-3-
RADCAL =RADIH-PJ
RIH=SORTfRADCALJ
LIH = RIH•SIZEI
Ill = Tl
Il = IOBS - LTH
TML = TH
JH:IOBS+LIH
DO 28 l =lo 2
N=JOBS+KSILJ•JH
KF=-l
DO 2~ H::Tlolll
CALL . GENRAYC lOBS oJ08So MoNo KF oLoKSo INRIMo LEVEloKDIHJ
2~ CONTINUE
KF=l
DO 26 M::THLoiH
CALL GENRAYIIOBSoJOBSoHoNoKFoLoKSoiNRIHoLEVELoMDIHJ
2& CONTINUE
Z8 CONTINUE
30 CONTJNUE
RETURN
END
i l FOR GENRAYoGENRAY
SUBROUT I NE GENRAYfl08SoJ08SoloJoKFoL•KSoiNRIMoLEVEloHDIHJ
C GENRAY GENER ATES a RAY OF CELLS FROM JOB So JOBS TO EACH I oJ ON THE
C
CIRCLE • THE RAY CONSISTS or All AND ONLY THOSE CELLS THROUG~
C
WHICH A LINE FROM THE OBSERVER TO A RJH P9INT PASSES •
C AN6MAX MAXIMAL ANGLE SETWEfN OBSERVER AND ANY CELL ON THE RAY WHICH
C
HAS BEEN TESTEO FOR VISIBILITY •
C U~fR MUST CHOOSE INITIAL VALUE OF ANGMAX. SELECT ZERO IF THE CENTER
C CELL IS TREATED AS A PLANE WITH THE OBSERVER FIXED AT ITS CENTER. ALL
C TERRAIN AT A LESSER ELEVATION WILL BE INVISIBLE. OTHERWISE SELECT A
C LARGE NEGATTVE VALUECEGo-9'3'3J WHICH TREATS THE CELL AS A POI1'4T.
C JLtG
NUMBER OF CELLS BETWEEN JOBS AND J •
C lLEG
NUMBER OF CELLS BETWEEN JOBS AND I •
DTHENSION KSC2JoiNRIMIM01MolJolEVELCMDIHol)
ANGMAX=-999
JLEG:IABSfJ-JOBSJ
JFCIOBS.EO.IJ GO TO 35
ILEG=IABSfi-IOBSJ
JFCILEG.LT.JLEGJ GO TO 20
I::IOBS
DO 10 K=l•ILEG
J::J+KF
J :JOBS•KSCLJ•JLEG•KITLEG
RSPAN:JABSCIOBS-JJ
CALL VTSTRYiloJoiOBSoANGHAXolNRIHoLEVELoRSPANoJOBSoHOIHJ
10 CONTINUE
GO TO ~0
20 J=J08S
DO 30 K=l•JLEG
J :: J•KSILJ
J :JOBS+KF•ILEG•KIJLEG
RSPAN=IABSfJOBS - JJ
CALL VlSTRYIJoJoiOBSoANGMAXolNRIHoLEVELo~SPANoJOBSoHDIMJ
30 CONTINUE
GO TO ItO
C
SPECIAL CASE !VERTICAL RAYJ AVOIDING DIVISION BY ZERO
J5 KF=KSIL J
J=JOBS
DO 3 8 K =1 • Jl E G
J=J+KF
RSPAN::TABSCJOBS-JJ
CALL VJSTRYIIoJolOBSoANGMAXolNRI"•lEVELoRSPANoJOBSoHDIMJ
l8 CONTINUE
-.o RETURN
END
-4-
ar
FOR
VJSTRYoVIST~Y
SUBROUTINE VTSTRYfloJoiOBStANGMAXtiNRIMtlEVEltRSPANtJOBStHOIHI
C VISTRY OETERHJN£S VISIBILITY OF SUCCESSIVE CELLS ALONG THE RAY •
C ANGNEX ANGLE BETWEEN OBSERVER AND IoJ •
DIMENSION JNRTHfHOIMolJtl(VELfHOTHo11
ANGNEX=fLEVELfltJI-LEVELfiOBSoJOBSII/RSPAN
JFfANGNEX.GE.ANGHIXI GO TO 10
TNRJH(J,JI=O
GO T 0 ZO
10 INRJHCI oJI =1 J
ANGHU=ANGNEX
20 RETURN
END
FOOTNOTES
1
Spurr, Stephen H. Photogrammetry and photointerpretation . Ed. 2. New York: Ronald
Press Co. 472 p. , illus. 1960.
2Bardoll, Ivnn H., III Comput e riz ed · visibility
calculations maximum si ~hting range program.
San Diego : Univ . of Caltf . 121 p. Jul. 1967 .
Boehne, R. C. Digital simul Ation o f environmental
1 imita ti ons of int c rvi s ibili ty. In, Digital
simulation in operational res earch. S.H.
Ho1lingdale, ed. New York : ~ne rican Elsevier
Publ. Co. p. 227-238, illus . 1967 .
Ford, Les t e r R. , Jr., Isaacson , H. S., and
Pethel, F . C. Computer t e rrain simulation
for line-of-sight ca l culations. Ope r. Res.
J. 4:478-482, illus. 1959.
McGrath, James J. , ed. Aeron auti cal charts
and map display . Goleta, Calif.: Human Factors Research, Inc. 237 p., illus. Aug. 1967.
Th e Authors---------------------------------ELLIOT L. AMIDON, an economist, is conducting
for e st economics studies, with particular emphasis on multipl e -use problems. He earned
B.S . (1954), in for e st management at Colorado
Agri cultural and Mechanical College, and M.S .
de gr e es (1960), in agricultural economics at_
th e Unive rsity of California . He has be en w1th
th e Be rk e ley station staff since 1959. GARY
H. ELSNER is studying quantitative planning
probl ems in for e st r e creation. He earned a B.S.
de gr ee (1962) in agricultural economics at the
Unive rsity of Arkansas, and M.S. (1964) and
Ph . D. (1966) de grees a t the University of California, Be rkeley.
-5-
Download