NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
lengds.f
Go to the documentation of this file.
1C> @file
2C> @brief GIven a grid description section (in w3fi63 format),
3C> return its size in terms of number of data points.
4C> @author Mark Iredell @date 1996-07-19
5
6C> Program history log:
7C> - Mark Iredell 1996-07-19
8C>
9C> @param[in] KGDS Integer (200) gds parameters in w3fi63 format.
10C> @return LENGDS Integer size of grid.
11C>
12C> @author Mark Iredell @date 1996-07-19
13C-----------------------------------------------------------------------
14 FUNCTION lengds(KGDS)
15 INTEGER kgds(200)
16C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
17C SPECIAL CASE OF STAGGERED ETA
18 IF(kgds(1).EQ.201) THEN
19 lengds=kgds(7)*kgds(8)-kgds(8)/2
20C SPECIAL CASE OF FILLED ETA
21 ELSEIF(kgds(1).EQ.202) THEN
22 lengds=kgds(7)*kgds(8)
23C SPECIAL CASE OF THINNED WAFS
24 ELSEIF(kgds(19).EQ.0.AND.kgds(20).NE.255) THEN
25 lengds=kgds(21)
26C GENERAL CASE
27 ELSE
28 lengds=kgds(2)*kgds(3)
29 ENDIF
30C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
31 END
function lengds(kgds)
Program history log:
Definition lengds.f:15