NCEPLIBS-bufr  12.0.0
numbck.f File Reference

Check the validity of an FXY value. More...

Go to the source code of this file.

Functions/Subroutines

function numbck (NUMB)
 This function checks the input character string to determine whether it contains a valid FXY (descriptor) value. More...
 

Detailed Description

Check the validity of an FXY value.

Author
Woollen
Date
1994-01-06

Definition in file numbck.f.

Function/Subroutine Documentation

◆ numbck()

function numbck ( character*6  NUMB)

This function checks the input character string to determine whether it contains a valid FXY (descriptor) value.

Parameters
[in]NUMB- character*6: FXY value to be checked.
Returns
indicator as to whether numb is valid:.
  • 0 yes
  • -1 no, the first character ("F" value) is not '0', '1', '2', or '3'
  • -2 no, characters 2-6 ("X" and "Y" values) are not all numeric
  • -3 no, characters 2-3 ("X" value) are not between '00' and '63'
  • -4 no, characters 4-6 ("Y" value) are not between '000' and '255'
Author
Woollen
Date
1994-01-06

Definition at line 19 of file numbck.f.

References digit().

Referenced by igetfxy(), and rdusdx().