libdsproc3  2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Internal: QC Utilities

Functions

unsigned int dsproc_get_qc_assessment_mask (CDSVar *qc_var, const char *assessment, int *nfound, int *max_bit_num)
 Get the QC mask for a specific QC assessment.

Detailed Description


Function Documentation

unsigned int dsproc_get_qc_assessment_mask ( CDSVar qc_var,
const char *  assessment,
int *  nfound,
int *  max_bit_num 
)

Get the QC mask for a specific QC assessment.

This function will use the bit assessment attributes to create a mask with all bits set for the specified assessment value. It will first check for field level bit assessment attributes, and then for the global attributes if they are not found.

Parameters:
qc_var- pointer to the QC variable
assessment- the QC assessment to get the mask for (i.e. "Bad" or "Indeterminate")
nfound- output: total number of qc assessment attributes found
max_bit_num- output: highest QC bit number used
Return values:
qc_maskThe QC mask for the specified QC assessment.

Definition at line 141 of file dsproc_qc_utils.c.