NCEPLIBS-bufr
12.0.0
|
Search consecutive subset buffer segments for an element identified in the user string as a conditional node. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | conwin (LUN, INC1, INC2) |
This subroutine searches consecutive subset buffer segments for an element identified in the user string as a conditional node. More... | |
Search consecutive subset buffer segments for an element identified in the user string as a conditional node.
Definition in file conwin.f.
subroutine conwin | ( | LUN, | |
INC1, | |||
INC2 | |||
) |
This subroutine searches consecutive subset buffer segments 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 internal subset buffer indices of the "window" (see below remarks) are returned to the caller for processing.
The four conditions which can be exercised are:
Each condition in a string is applied to one element, and all conditions are 'and'ed to evaluate an outcome. For example, if the condition string is: "POB<500 TOB>30 TQM<4" then the only levels of data read or written are those with pressure lt 500 mb, temperature gt 30 deg, and temperature quality mark < 4.
See getwin() for an explanation of "windows" within the context of a BUFR data subset.
Function conwin() works with function invcon() to identify subset buffer segments which conform to the set of conditions.
[in] | LUN | integer I/O stream index into internal memory arrays. |
[out] | INC1 | integer subset buffer start index |
[in,out] | INC2 | integer subset buffer ending index |
Definition at line 37 of file conwin.f.
References getwin(), invcon(), and moda_usrint::nval.