bufr2synop 0.24.0
|
This file has the code which parse sequences in a bufr. More...
#include "bufrdeco.h"
Go to the source code of this file.
Functions | |
int | get_unexpanded_descriptor_array_from_sec3 (struct bufr_sequence *s, struct bufrdeco *b) |
Set to a struct bufr_sequence an unexpanded descriptor array from sec3 in a BUFR report. More... | |
int | bufrdeco_parse_tree_recursive (struct bufrdeco *b, struct bufr_sequence *father, buf_t father_idesc, const char *key) |
Parse the descriptor tree in a recursive way. More... | |
This file has the code which parse sequences in a bufr.
Definition in file bufrdeco_tree.c.
int bufrdeco_parse_tree_recursive | ( | struct bufrdeco * | b, |
struct bufr_sequence * | father, | ||
buf_t | father_idesc, | ||
const char * | key | ||
) |
Parse the descriptor tree in a recursive way.
key | string with descriptor in form 'FXXYYY' |
father | pointer to the father struct bufr_sequence |
father_idesc | index of sequence descriptor in father bufr_sequence which this sequence derived |
b | pointer to the base struct bufrdeco |
Definition at line 60 of file bufrdeco_tree.c.
References bufr_sequence_index_range::active, bufrdeco_parse_tree_recursive(), bufrdeco_tableD_get_descriptors_array(), bufr_descriptor::c, bufr_sequence::cat_forecast, bufr_sequence::cond_event, bufrdeco::error, bufr_sequence::event, bufr_descriptor::f, bufr_sequence::father, bufr_sequence::father_idesc, bufr_sequence_index_range::first, get_unexpanded_descriptor_array_from_sec3(), bufr_sequence::iseq, bufr_sequence::key, bufr_sequence_index_range::last, bufr_sequence::level, bufr_sequence::lseq, bufr_sequence::name, bufr_sequence::ndesc, NMAXSEQ_DESCRIPTORS, bufr_sequence::no_data_present, bufrdeco_expanded_tree::nseq, bufr_sequence::replicated, bufrdeco_expanded_tree::seq, bufr_sequence::sons, bufrdeco::tree, bufr_descriptor::x, and bufr_descriptor::y.
Referenced by bufrdeco_parse_tree(), and bufrdeco_parse_tree_recursive().
int get_unexpanded_descriptor_array_from_sec3 | ( | struct bufr_sequence * | s, |
struct bufrdeco * | b | ||
) |
Set to a struct bufr_sequence an unexpanded descriptor array from sec3 in a BUFR report.
s | Pointer to the target struct bufr_sequence |
b | Pointer to the base struct bufrdeco |
Here we get a struct bufr_sequence from the data about descriptors stored in sec3 of a bufr report
Definition at line 35 of file bufrdeco_tree.c.
References bufrdeco_assert, bufr_sequence::lseq, bufr_sequence::ndesc, bufr_sec3::ndesc, bufrdeco::sec3, and bufr_sec3::unexpanded.
Referenced by bufrdeco_parse_tree_recursive().