NCEPLIBS-bufr  12.0.0
nwords.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Compute the length of a delayed replication sequence
3 C>
4 C> @author Woollen @date 1996-10-09
5 
6 C> This function adds up the complete length of the delayed
7 C> replication sequence beginning at index N of the data subset.
8 C>
9 C> @param[in] N - integer: index to start of delayed replication sequence.
10 C> @param[in] LUN - integer: I/O stream index into internal memory arrays.
11 C>
12 C> @return complete length of delayed replication sequence within data subset.
13 C>
14 C> @author Woollen @date 1996-10-09
15  FUNCTION nwords(N,LUN)
16 
17  USE moda_usrint
18 
19 C-----------------------------------------------------------------------
20 C-----------------------------------------------------------------------
21 
22  nwords = 0
23 
24  DO k=1,nint(val(n,lun))
25  nwords = nwords + nint(val(nwords+n+1,lun))
26  ENDDO
27 
28  RETURN
29  END
This module contains declarations for arrays used to store data values and associated metadata for th...
real *8, dimension(:,:), allocatable, target val
Data values.
function nwords(N, LUN)
This function adds up the complete length of the delayed replication sequence beginning at index N of...
Definition: nwords.f:16