NCEPLIBS-bufr  11.7.0
 All Data Structures Files Functions Variables Pages
bufr_interface.h
Go to the documentation of this file.
1 
14 #pragma once
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
29  void open_f(int unit, const char* filepath);
30 
31 
40  void close_f(int unit);
41 
42 
52  void openbf_f(int bufr_unit, const char* cio, int table_file_id);
53 
54 
62  void closbf_f(int bufr_unit);
63 
64 
71  void exitbufr_f();
72 
73 
84  int ireadmg_f(int bufr_unit, char* subset, int* iddate, int subset_len);
85 
86 
94  int ireadsb_f(int bufr_unit);
95 
96 
108  void ufbint_f(int bufr_unit, void** c_data, int dim_1, int dim_2,
109  int* iret, const char* table_b_mnemonic);
110 
111 
123  void ufbrep_f(int bufr_unit, void** c_data, int dim_1, int dim_2,
124  int* iret, const char* table_b_mnemonic);
125 
126 
136  void mtinfo_f(const char* path, int file_unit_1, int file_unit_2);
137 
138 
139  // Table Data
150  void status_f(int file_unit, int* lun, int* il, int* im);
151 
152 
161  void get_isc_f(int** data, int* len);
162 
163 
172  void get_link_f(int** data, int* len);
173 
174 
183  void get_itp_f(int** data, int* len);
184 
185 
194  void get_typ_f(char** data, int* str_len, int* size);
195 
196 
205  void get_tag_f(char** data, int* str_len, int* size);
206 
207 
216  void get_jmpb_f(int** data, int* len);
217 
218 
219  // Data
228  void get_inode_f(int lun, int* startNode);
229 
230 
239  void get_nval_f(int lun, int* numNodes);
240 
241 
251  void get_val_f(int lun, double** data, int* len);
252 
253 
263  void get_inv_f(int lun, int** data, int* len);
264 
265 
271  void delete_table_data_f();
272 
273 #ifdef __cplusplus
274 }
275 #endif
void get_nval_f(int lun, int *numNodes)
Get the number of values in the current subset.
void get_tag_f(char **data, int *str_len, int *size)
Get copy of the moda_tables TAG array.
void get_val_f(int lun, double **data, int *len)
Get pointer to the moda_usrint VAL array.
int ireadmg_f(int bufr_unit, char *subset, int *iddate, int subset_len)
Wraps BUFRLIB "ireadmg" subroutine.
void close_f(int unit)
Wraps fortran "close" statement so we can close a Fortran file from a C program.
void get_typ_f(char **data, int *str_len, int *size)
Get copy of the moda_tables TYP array.
void get_inode_f(int lun, int *startNode)
Get the bufr node idx for the start node of the subset.
void status_f(int file_unit, int *lun, int *il, int *im)
Wraps BUFRLIB "status" function.
void get_itp_f(int **data, int *len)
Get copy of the moda_tables ITP array.
void get_isc_f(int **data, int *len)
Get copy of the moda_tables ISC array.
void delete_table_data_f()
Deletes the copies of the moda_tables arrays.
int ireadsb_f(int bufr_unit)
Wraps BUFRLIB "ireadsb" function.
void ufbrep_f(int bufr_unit, void **c_data, int dim_1, int dim_2, int *iret, const char *table_b_mnemonic)
Wraps BUFRLIB "ufbrep" function.
void get_link_f(int **data, int *len)
Get copy of the moda_tables LINK array.
void mtinfo_f(const char *path, int file_unit_1, int file_unit_2)
Wraps BUFRLIB "mtinfo" function.
void get_jmpb_f(int **data, int *len)
Get copy of the moda_tables JMPB array.
void openbf_f(int bufr_unit, const char *cio, int table_file_id)
Wraps BUFRLIB "openbf" subroutine.
void closbf_f(int bufr_unit)
Wraps BUFRLIB "closbf" subroutine.
void exitbufr_f()
Wraps BUFRLIB "exitbufr" subroutine. Closes all open file units used by BUFRLIB.
void open_f(int unit, const char *filepath)
Wraps fortran "open" statement so we can open a Fortran file from a C program.
void get_inv_f(int lun, int **data, int *len)
Get pointer to the moda_usrint INV array.
void ufbint_f(int bufr_unit, void **c_data, int dim_1, int dim_2, int *iret, const char *table_b_mnemonic)
Wraps BUFRLIB "ufbint" function.