NCEPLIBS-bufr  11.6.0
 All Data Structures Files Functions Variables Pages
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

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.

Definition in file pkftbv.f.

Function/Subroutine Documentation

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.

Author
J. Ator
Date
2005-11-29
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.

Program history log:

Date Programmer Comments
2005-11-29 J. Ator Original version

Definition at line 31 of file pkftbv.f.