NCEPLIBS-bufr  12.0.0
invcon.f File Reference

Search a specified window for a conditional node. More...

Go to the source code of this file.

Functions/Subroutines

function invcon (NC, LUN, INV1, INV2)
 This function searches a "window" (see below remarks) for an element identified in the user string as a conditional node. More...
 

Detailed Description

Search a specified window for a conditional node.

Author
Woollen
Date
1994-01-06

Definition in file invcon.f.

Function/Subroutine Documentation

◆ invcon()

function invcon (   NC,
  LUN,
  INV1,
  INV2 
)

This function searches a "window" (see below remarks) for an element identified in the user string as a conditional node.

A conditional node is an element which must meet a condition in order to be read from or written to a data subset. If a conditional element is found and it conforms to the condition, then the index of the element within the window is returned; otherwise a value of zero is returned.

Note
: See getwin() for an explanation of "windows" within the context of a bufr data subset.
Parameters
[in]NC- integer: condition code:
  • 1 '=' (equal)
  • 2 '!' (not equal)
  • 3 '<' (less than)
  • 4 '>' (greater than)
[in]LUN- integer: i/o stream index into internal memory arrays
[in]INV1- integer: first index of window to search
[in]INV2- integer: last index of window to search
Returns
integer: index within window of conditional node conforming to specified condition.
  • 0 none found.
Author
Woollen
Date
1994-01-06

Definition at line 31 of file invcon.f.

References errwrt(), moda_usrint::inv, moda_usrint::nval, and moda_usrint::val.

Referenced by conwin().