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