NCEPLIBS-bufr  12.0.1
mvb.f
Go to the documentation of this file.
1 C> @file
2 C> @brief Copy a specified number of bytes from
3 C> one packed binary array to another.
4 C>
5 C> @author Woollen @date 1994-01-06
6 
7 C> This subroutine copies a specified number of bytes from
8 C> one packed binary array to another.
9 C>
10 C> @param[in] IB1 - integer: packed input binary array.
11 C> @param[in] NB1 - integer: pointer to first byte in IB1 to copy from.
12 C> @param[out] IB2 - integer: packed output binary array.
13 C> @param[in] NB2 - integer: pointer to first byte in IB2 to copy to.
14 C> @param[in] NBM - integer: number of bytes to copy.
15 C>
16 C> @author Woollen @date 1994-01-06
17  SUBROUTINE mvb(IB1,NB1,IB2,NB2,NBM)
18 
19  dimension ib1(*),ib2(*)
20 
21 C-----------------------------------------------------------------------
22 C-----------------------------------------------------------------------
23 
24  jb1 = 8*(nb1-1)
25  jb2 = 8*(nb2-1)
26 
27  DO n=1,nbm
28  CALL upb(nval,8,ib1,jb1)
29  CALL pkb(nval,8,ib2,jb2)
30  ENDDO
31 
32 C EXITS
33 C -----
34 
35  RETURN
36  END
subroutine mvb(IB1, NB1, IB2, NB2, NBM)
This subroutine copies a specified number of bytes from one packed binary array to another.
Definition: mvb.f:18
subroutine pkb(NVAL, NBITS, IBAY, IBIT)
This subroutine encodes an integer value within a specified number of bits of an integer array,...
Definition: pkb.f:28
subroutine upb(NVAL, NBITS, IBAY, IBIT)
This subroutine decodes an integer value from within a specified number of bits of an integer array,...
Definition: upb.f:28