NCEPLIBS-bufr  12.0.0
ifxy.f File Reference

Convert an FXY value from its six character representation to its WMO bit-wise representation. More...

Go to the source code of this file.

Functions/Subroutines

function ifxy (ADSC)
 Convert an FXY value from its 6 character representation to its WMO bit-wise representation. More...
 

Detailed Description

Convert an FXY value from its six character representation to its WMO bit-wise representation.

Author
J. Woollen
Date
1994-01-06

Definition in file ifxy.f.

Function/Subroutine Documentation

◆ ifxy()

function ifxy ( character*6  ADSC)

Convert an FXY value from its 6 character representation to its WMO bit-wise representation.

Per the official WMO BUFR regulations, an FXY value can be represented as a bit-wise integer in 16 bits, ordered from left (most significant) to right (least significant), and where the F value occupies the first 2 bits, the X value occupies the next 6 bits, and the Y value occupies the last 8 bits.

For example, if ADSC = '063022'

   F |     X     |      Y
   0 |     63    |      22
  0 0 1 1 1 1 1 1 0 0 0 1 0 1 1 0

then the corresponding ifxy

  = ( 2**13 + 2**12 + 2**11 + 2**10 + 2**9 + 2**8 +
      2**4 + 2**2 + 2**1 )

  = 16150
Parameters
[in]ADSC- character*6: FXY value.
Returns
ifxy - integer: WMO bit-wise representation of FXY value.
Author
J. Woollen
Date
1994-01-06

Definition at line 33 of file ifxy.f.

Referenced by bfrini(), dxinit(), getcfmng(), getntbe(), idn30(), bufr_c2f_interface::ifxy_c(), ireadmt(), nemtab(), nemtbb(), nemtbd(), numtbd(), reads3(), sntbde(), sntbfe(), stbfdx(), stntbi(), and ufbqcp().