bufr2synop 0.24.0
|
file with the code to print data or any output from library decobufr More...
#include "bufrdeco.h"
Go to the source code of this file.
Functions | |
int | sprint_sec0_info (char *target, size_t lmax, struct bufrdeco *b) |
Prints info from sec0. More... | |
int | print_sec0_info (struct bufrdeco *b) |
Prints info from sec0. More... | |
int | sprint_sec1_info (char *target, size_t lmax, struct bufrdeco *b) |
Prints info from sec1. More... | |
int | print_sec1_info (struct bufrdeco *b) |
Prints info from sec1. More... | |
int | sprint_sec3_info (char *target, size_t lmax, struct bufrdeco *b) |
Prints info from sec3. More... | |
int | print_sec3_info (struct bufrdeco *b) |
Prints info from sec3. More... | |
int | sprint_sec4_info (char *target, size_t lmax, struct bufrdeco *b) |
Prints info from sec4. More... | |
int | print_sec4_info (struct bufrdeco *b) |
Prints info from sec3. More... | |
int | bufrdeco_fprint_tree_recursive (FILE *f, struct bufrdeco *b, struct bufr_sequence *seq) |
Print a tree of descriptors to a file in a recursive way. More... | |
int | bufrdeco_fprint_tree (FILE *f, struct bufrdeco *b) |
Print a tree of descriptors. More... | |
int | bufrdeco_print_tree (struct bufrdeco *b) |
Print a tree of descriptors. More... | |
int | bufrdeco_print_atom_data_file (FILE *f, struct bufr_atom_data *a) |
print the data in a struct bufr_atom_data to a file already open by caller More... | |
int | bufrdeco_print_atom_data_stdout (struct bufr_atom_data *a) |
print the data in a struct bufr_atom_data to stdout More... | |
char * | bufrdeco_print_atom_data (char *target, size_t lmax, struct bufr_atom_data *a) |
print the data in a struct bufr_atom_data to a string More... | |
int | bufrdeco_fprint_subset_sequence_data (FILE *f, struct bufrdeco_subset_sequence_data *s) |
int | bufrdeco_print_subset_sequence_data (struct bufrdeco_subset_sequence_data *s) |
Prints a struct bufrdeco_subset_sequence_data. More... | |
int | fprint_bufrdeco_compressed_ref (FILE *f, struct bufrdeco_compressed_ref *r) |
prints a struct bufrdeco_compressed_ref More... | |
int | print_bufrdeco_compressed_ref (struct bufrdeco_compressed_ref *r) |
prints a struct bufrdeco_compressed_ref More... | |
int | print_bufrdeco_compressed_data_references (struct bufrdeco_compressed_data_references *r) |
prints a struct bufrdeco_compressed_references More... | |
int | fprint_bufrdeco_compressed_data_references (FILE *f, struct bufrdeco_compressed_data_references *r) |
file with the code to print data or any output from library decobufr
Definition in file bufrdeco_print.c.
int bufrdeco_fprint_subset_sequence_data | ( | FILE * | f, |
struct bufrdeco_subset_sequence_data * | s | ||
) |
Definition at line 520 of file bufrdeco_print.c.
References bufrdeco_assert, bufrdeco_print_atom_data(), bufrdeco_subset_sequence_data::nd, bufr_atom_data::seq, and bufrdeco_subset_sequence_data::sequence.
Referenced by bufrdeco_print_subset_sequence_data().
int bufrdeco_fprint_tree | ( | FILE * | f, |
struct bufrdeco * | b | ||
) |
Print a tree of descriptors.
f | Pointer to file opened by caller |
b | pointer to a basic container struct bufrdeco |
Definition at line 360 of file bufrdeco_print.c.
References bufrdeco_assert, bufrdeco_fprint_tree_recursive(), BUFRDECO_OUTPUT_HTML, and bufrdeco::mask.
int bufrdeco_fprint_tree_recursive | ( | FILE * | f, |
struct bufrdeco * | b, | ||
struct bufr_sequence * | seq | ||
) |
Print a tree of descriptors to a file in a recursive way.
f | Pointer to file opened by caller |
b | pointer to the basic container struct bufrdeco |
seq | pointer to the struct bufr_sequence to print |
Definition at line 259 of file bufrdeco_print.c.
References bufr_tables::b, bufr_find_tableB_index(), bufrdeco_assert, bufrdeco_fprint_tree_recursive(), bufrdeco_get_f2_descriptor_explanation(), bufr_descriptor::c, bufr_descriptor::f, is_a_delayed_descriptor(), is_a_short_delayed_descriptor(), bufr_tableB::item, bufr_sequence::level, bufr_sequence::lseq, bufr_sequence::name, bufr_tableB_decoded_item::name, bufr_sequence::ndesc, bufr_sequence::replicated, bufrdeco_expanded_tree::seq, bufr_sequence::sons, bufrdeco::tables, bufrdeco::tree, bufr_descriptor::x, and bufr_descriptor::y.
Referenced by bufrdeco_fprint_tree(), bufrdeco_fprint_tree_recursive(), and bufrdeco_print_tree().
char * bufrdeco_print_atom_data | ( | char * | target, |
size_t | lmax, | ||
struct bufr_atom_data * | a | ||
) |
print the data in a struct bufr_atom_data to a string
target | string where to print the result |
lmax | size of allocated string target |
a | pointer to struct ref bufr_atom_data with data to print |
Definition at line 433 of file bufrdeco_print.c.
References bufr_atom_data::bitmap_to, BUFR_EXPLAINED_LENGTH, BUFR_TABLEB_NAME_LENGTH, bufrdeco_assert, bufr_atom_data::ctable, bufr_atom_data::cval, bufr_atom_data::desc, DESCRIPTOR_HAVE_CODE_TABLE_STRING, DESCRIPTOR_HAVE_FLAG_TABLE_STRING, DESCRIPTOR_HAVE_STRING_VALUE, DESCRIPTOR_VALUE_MISSING, bufr_atom_data::escale, bufr_descriptor::f, get_formatted_value_from_escale(), bufr_atom_data::is_bitmaped_by, bufr_atom_data::mask, bufr_atom_data::name, bufr_atom_data::related_to, strcpy_safe, bufr_atom_data::unit, bufr_atom_data::val, bufr_descriptor::x, and bufr_descriptor::y.
Referenced by bufrdeco_fprint_subset_sequence_data(), and bufrdeco_print_atom_data_file().
int bufrdeco_print_atom_data_file | ( | FILE * | f, |
struct bufr_atom_data * | a | ||
) |
print the data in a struct bufr_atom_data to a file already open by caller
f | Pointer to file opened by caller |
a | pointer to struct ref bufr_atom_data with data to print |
Definition at line 403 of file bufrdeco_print.c.
References bufrdeco_assert, and bufrdeco_print_atom_data().
Referenced by bufrdeco_print_atom_data_stdout().
int bufrdeco_print_atom_data_stdout | ( | struct bufr_atom_data * | a | ) |
print the data in a struct bufr_atom_data to stdout
a | pointer to struct ref bufr_atom_data with data to print |
Definition at line 419 of file bufrdeco_print.c.
References bufrdeco_print_atom_data_file().
int bufrdeco_print_subset_sequence_data | ( | struct bufrdeco_subset_sequence_data * | s | ) |
Prints a struct bufrdeco_subset_sequence_data.
s | pointer to the struct to print |
Definition at line 545 of file bufrdeco_print.c.
References bufrdeco_assert, and bufrdeco_fprint_subset_sequence_data().
Referenced by main().
int bufrdeco_print_tree | ( | struct bufrdeco * | b | ) |
Print a tree of descriptors.
b | pointer to a basic container struct bufrdeco |
b | pointer to a basic container struct bufrdeco |
Definition at line 381 of file bufrdeco_print.c.
References bufrdeco_assert, bufrdeco_fprint_tree_recursive(), BUFRDECO_OUTPUT_HTML, and bufrdeco::mask.
Referenced by main().
int fprint_bufrdeco_compressed_data_references | ( | FILE * | f, |
struct bufrdeco_compressed_data_references * | r | ||
) |
Definition at line 619 of file bufrdeco_print.c.
References bufrdeco_assert, fprint_bufrdeco_compressed_ref(), bufrdeco_compressed_data_references::nd, and bufrdeco_compressed_data_references::refs.
int fprint_bufrdeco_compressed_ref | ( | FILE * | f, |
struct bufrdeco_compressed_ref * | r | ||
) |
prints a struct bufrdeco_compressed_ref
f | pointer to a file opened by caller |
r | pointer to the struct to print |
Definition at line 558 of file bufrdeco_print.c.
References bufrdeco_compressed_ref::bit0, bufrdeco_compressed_ref::bits, bufrdeco_assert, BUFRDECO_COMPRESSED_REF_DATA_DESCRIPTOR_BITMASK, bufr_descriptor::c, bufrdeco_compressed_ref::cref0, bufrdeco_compressed_ref::desc, bufrdeco_compressed_ref::escale, bufrdeco_compressed_ref::has_data, bufrdeco_compressed_ref::inc_bits, bufrdeco_compressed_ref::is_associated, bufrdeco_compressed_ref::mask, bufrdeco_compressed_ref::name, bufrdeco_compressed_ref::ref, bufrdeco_compressed_ref::ref0, and bufrdeco_compressed_ref::unit.
Referenced by fprint_bufrdeco_compressed_data_references(), and print_bufrdeco_compressed_ref().
int print_bufrdeco_compressed_data_references | ( | struct bufrdeco_compressed_data_references * | r | ) |
prints a struct bufrdeco_compressed_references
r | pointer to the struct to print |
It is used mainly in debug stage
Definition at line 600 of file bufrdeco_print.c.
References bufrdeco_assert, bufrdeco_compressed_data_references::nd, print_bufrdeco_compressed_ref(), and bufrdeco_compressed_data_references::refs.
Referenced by main().
int print_bufrdeco_compressed_ref | ( | struct bufrdeco_compressed_ref * | r | ) |
prints a struct bufrdeco_compressed_ref
r | pointer to the struct to print |
Definition at line 585 of file bufrdeco_print.c.
References bufrdeco_assert, and fprint_bufrdeco_compressed_ref().
Referenced by print_bufrdeco_compressed_data_references().
int print_sec0_info | ( | struct bufrdeco * | b | ) |
Prints info from sec0.
b | pointer to the source struct bufrdeco |
Definition at line 62 of file bufrdeco_print.c.
References bufrdeco_assert, and sprint_sec0_info().
Referenced by main().
int print_sec1_info | ( | struct bufrdeco * | b | ) |
Prints info from sec1.
b | pointer to the source struct bufrdeco |
Definition at line 135 of file bufrdeco_print.c.
References bufrdeco_assert, and sprint_sec1_info().
Referenced by main().
int print_sec3_info | ( | struct bufrdeco * | b | ) |
Prints info from sec3.
b | pointer to the source struct bufrdeco |
Definition at line 192 of file bufrdeco_print.c.
References bufrdeco_assert, and sprint_sec3_info().
Referenced by main().
int print_sec4_info | ( | struct bufrdeco * | b | ) |
Prints info from sec3.
b | pointer to the source struct bufrdeco |
Definition at line 239 of file bufrdeco_print.c.
References bufrdeco_assert, and sprint_sec4_info().
Referenced by main().
int sprint_sec0_info | ( | char * | target, |
size_t | lmax, | ||
struct bufrdeco * | b | ||
) |
Prints info from sec0.
target | string target |
lmax | available size in target |
b | pointer to the source struct bufrdeco |
Definition at line 35 of file bufrdeco_print.c.
References bufr_sec0::bufr_length, bufrdeco_assert, BUFRDECO_OUTPUT_HTML, bufr_sec0::edition, bufrdeco::error, bufrdeco::mask, bufrdeco::sec0, and sprint_sec0_info_html().
Referenced by print_sec0_info().
int sprint_sec1_info | ( | char * | target, |
size_t | lmax, | ||
struct bufrdeco * | b | ||
) |
Prints info from sec1.
target | string target |
lmax | available size in target |
b | pointer to the source struct bufrdeco |
Definition at line 83 of file bufrdeco_print.c.
References bufr_tables::b, bufrdeco_assert, BUFRDECO_OUTPUT_HTML, bufr_tables::c, bufr_sec1::category, bufr_sec1::centre, bufr_tables::d, bufr_sec1::day, bufr_sec0::edition, bufrdeco::error, bufr_sec1::hour, bufr_sec1::length, bufrdeco::mask, bufr_sec1::master, bufr_sec1::master_local, bufr_sec1::master_version, bufr_sec1::minute, bufr_sec1::month, bufr_sec1::options, bufr_tableB::path, bufr_tableC::path, bufr_tableD::path, bufrdeco::sec0, bufrdeco::sec1, bufr_sec1::second, sprint_sec1_info_html(), bufr_sec1::subcategory, bufr_sec1::subcategory_local, bufr_sec1::subcentre, bufrdeco::tables, bufr_sec1::update, and bufr_sec1::year.
Referenced by print_sec1_info().
int sprint_sec3_info | ( | char * | target, |
size_t | lmax, | ||
struct bufrdeco * | b | ||
) |
Prints info from sec3.
target | string target |
lmax | available size in target |
b | pointer to the source struct bufrdeco |
Definition at line 155 of file bufrdeco_print.c.
References bufrdeco_assert, BUFRDECO_OUTPUT_HTML, bufr_sec3::compressed, bufrdeco::error, bufr_descriptor::f, bufr_sec3::length, bufrdeco::mask, bufr_sec3::ndesc, bufr_sec3::observed, bufrdeco::sec3, sprint_sec3_info_html(), bufr_sec3::subsets, bufr_sec3::unexpanded, bufr_descriptor::x, and bufr_descriptor::y.
Referenced by print_sec3_info().
int sprint_sec4_info | ( | char * | target, |
size_t | lmax, | ||
struct bufrdeco * | b | ||
) |
Prints info from sec4.
target | string target |
lmax | available size in target |
b | pointer to the source struct bufrdeco |
Definition at line 213 of file bufrdeco_print.c.
References bufrdeco_assert, BUFRDECO_OUTPUT_HTML, bufrdeco::error, bufr_sec4::length, bufrdeco::mask, bufrdeco::sec4, and sprint_sec4_info_html().
Referenced by print_sec4_info().