NCEPLIBS-bufr  12.0.1
pkftbv.f File Reference

Determine the numerical data value equivalent to the setting of a specified bit within a flag table. More...

Go to the source code of this file.

Functions/Subroutines

recursive real *8 function pkftbv (NBITS, IBIT)
 This function computes the numerical value equivalent to the setting of bit #(IBIT) within a flag table of NBITS bits. More...
 

Detailed Description

Determine the numerical data value equivalent to the setting of a specified bit within a flag table.

Author
J. Ator
Date
2005-11-29

Definition in file pkftbv.f.

Function/Subroutine Documentation

◆ pkftbv()

recursive real*8 function pkftbv (   NBITS,
  IBIT 
)

This function computes the numerical value equivalent to the setting of bit #(IBIT) within a flag table of NBITS bits.

If the computation fails for any reason, then the function returns the current placeholder value for "missing" data.

Parameters
[in]NBITS– integer: Total number of bits in flag table
[in]IBIT– integer: Number of bit to be set
Returns
pkftbv – real*8: Value equivalent to the setting of bit #(IBIT) within a flag table of NBITS bits
Remarks
  • This function is the logical inverse of subroutine upftbv().
  • According to the WMO standard, bits within a bit field are numbered from left to right, so bit #1 is always the high-order (i.e. most significant) bit in any bit field.
Author
J. Ator
Date
2005-11-29

Definition at line 26 of file pkftbv.f.

References modv_bmiss::bmiss, modv_im8b::im8b, and x84().