GNU WOCSS (gwocss)  2.2.4-pre
GNU version of Winds On Critical Streamline Surfaces (WOCSS)
Functions/Subroutines
topo.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine topo
 

Function/Subroutine Documentation

subroutine topo ( )

Definition at line 3 of file topo.f.

Referenced by wocss().

3 C*********************************************************************
4 C
5 C READ AND COMPUTE TOPOGRAPHY AT GRID POINTS. GET
6 C FIRST GUESS FLOW SURFACES. RESIG WILL BE USED LATER TO DEFINE THEM
7 C IN TERMS OF THE CRITICAL STREAMLINE PARAMETERS.
8 C
9  include 'NGRIDS.PAR'
10 C
11  include 'ANCHOR.CMM'
12  include 'FLOWER.CMM'
13  include 'LIMITS.CMM'
14 C
15 C MAKE SURE THAT THINGS READ ON 1ST PASS ARE THERE ON LATER CALLS
16 C
17  SAVE
18 C
19 C READ TERRAIN HEIGHT VALUES AT GRID POINTS IN METERS, ALL GRIDS
20 C
21  WRITE (*,*) 'READ TOPORAPHY'
22  sfclow=1.e6
23  sfchi=-1.e6
24 C
25 C IN DATA FILE, NORTHERN ROW IS FIRST.
26 C READ HEIGHTS AT GRID POINTS & SET INITIAL BOUNDARY LAYER HT.
27 C USE TERRAIN FOLLOWING 1ST; WILL RESET IN RESIG LATER.
28 C
29  DO 28 jinvy=1,nrow
30  jy=1+nrow-jinvy
31 
32  READ (11,6004) (sfcht(ix,jy),ix=1,ncol)
33  IF (mod(jinvy,10).EQ.1)
34  $ WRITE (*,6004) (sfcht(ix,jy),ix=1,ncol,10)
35 C
36 C GET ELEVATION AT ORIGIN
37 C
38  zorig=sfcht(1,1)
39  DO 18 ix=1,ncol
40  IF(sfcht(ix,jy).LT.sfclow) sfclow=sfcht(ix,jy)
41  IF(sfcht(ix,jy).GT. sfchi) sfchi =sfcht(ix,jy)
42 18 CONTINUE
43 28 CONTINUE
44 C
45  zrise=sfchi-sfclow
46  relht=avthk
47 C
48 C GET HEIGHT OF EACH 1ST GUESS SURFACE RELATIVE TO TERRAIN FOR EACH
49 C GRID PT. CHANGE IN HT RELATIVE TO THE LOWEST HT (MSL) IS ASSUMED
50 C PROPORTIONAL TO SIGMA FOR THAT SFC.
51 C
52  DO 67 jy=1,nrow
53  DO 67 ix=1,ncol
54  DO 65 kz=1,nlvl
55 C
56  rhs(ix,jy,kz) =sigma(kz)*avthk-
57  $ (sfcht(ix,jy)-sfclow)*(1.0-slfac)
58 65 CONTINUE
59 67 CONTINUE
60 C
61 6001 FORMAT(f3.0,107f4.0)
62 6002 FORMAT (1x, 45f5.0)
63 6003 FORMAT (1x, 161f5.0)
64 6004 FORMAT (1x, 180f5.0)
65 C
66  RETURN
67 C

Here is the caller graph for this function: