NCEPLIBS-bufr
12.0.0
|
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... | |
Convert an FXY value from its six character representation to its WMO bit-wise representation.
Definition in file ifxy.f.
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
[in] | ADSC | - character*6: FXY value. |
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().