NCEPLIBS-bufr 11.7.1
bufr_interface.h
Go to the documentation of this file.
1
14#pragma once
15
16#ifdef __cplusplus
17extern "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
166 void nemdefs_f(int file_unit,
167 const char* mnemonic,
168 char* unit_c,
169 int unit_str_len,
170 char* desc_c,
171 int desc_str_len,
172 int* iret);
173
174
188 void nemspecs_f(int file_unit,
189 const char* mnemonic,
190 int mnemonic_idx,
191 int* scale,
192 int* reference,
193 int* bits,
194 int* iret);
195
196
209 void nemtab_f(int bufr_unit,
210 const char* mnemonic,
211 int* descriptor,
212 char* table_type,
213 int* table_idx);
214
215
229 void nemtbb_f(int bufr_unit,
230 int table_idx,
231 char* unit_str,
232 int unit_str_len,
233 int* scale,
234 int* reference,
235 int* bits);
236
237
246 void get_isc_f(int** data, int* len);
247
248
257 void get_link_f(int** data, int* len);
258
259
268 void get_itp_f(int** data, int* len);
269
270
279 void get_typ_f(char** data, int* str_len, int* size);
280
281
290 void get_tag_f(char** data, int* str_len, int* size);
291
292
301 void get_jmpb_f(int** data, int* len);
302
303
304 // Data
313 void get_inode_f(int lun, int* startNode);
314
315
324 void get_nval_f(int lun, int* numNodes);
325
326
336 void get_val_f(int lun, double** data, int* len);
337
338
348 void get_inv_f(int lun, int** data, int* len);
349
350
357
358#ifdef __cplusplus
359}
360#endif
void closbf_f(int bufr_unit)
Wraps BUFRLIB "closbf" subroutine.
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_inv_f(int lun, int **data, int *len)
Get pointer to the moda_usrint INV array.
void get_inode_f(int lun, int *startNode)
Get the bufr node idx for the start node of the subset.
void nemtab_f(int bufr_unit, const char *mnemonic, int *descriptor, char *table_type, int *table_idx)
This subroutine returns information about a descriptor from the internal DX BUFR tables,...
void get_val_f(int lun, double **data, int *len)
Get pointer to the moda_usrint VAL array.
void get_typ_f(char **data, int *str_len, int *size)
Get copy of the moda_tables TYP array.
int ireadsb_f(int bufr_unit)
Wraps BUFRLIB "ireadsb" function.
void openbf_f(int bufr_unit, const char *cio, int table_file_id)
Wraps BUFRLIB "openbf" subroutine.
void get_jmpb_f(int **data, int *len)
Get copy of the moda_tables JMPB array.
void get_isc_f(int **data, int *len)
Get copy of the moda_tables ISC array.
void nemspecs_f(int file_unit, const char *mnemonic, int mnemonic_idx, int *scale, int *reference, int *bits, int *iret)
Gets Table B scale, reference, and bits values. Wraps BUFRLIB "nemspecs".
void status_f(int file_unit, int *lun, int *il, int *im)
Wraps BUFRLIB "status" function.
int ireadmg_f(int bufr_unit, char *subset, int *iddate, int subset_len)
Wraps BUFRLIB "ireadmg" subroutine.
void mtinfo_f(const char *path, int file_unit_1, int file_unit_2)
Wraps BUFRLIB "mtinfo" function.
void nemdefs_f(int file_unit, const char *mnemonic, char *unit_c, int unit_str_len, char *desc_c, int desc_str_len, int *iret)
Gets Table B Unit and Description strings for a mnemonic. Wraps BUFRLIB "nemdefs".
void close_f(int unit)
Wraps fortran "close" statement so we can close a Fortran file from a C program.
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.
void exitbufr_f()
Wraps BUFRLIB "exitbufr" subroutine. Closes all open file units used by BUFRLIB.
void get_itp_f(int **data, int *len)
Get copy of the moda_tables ITP array.
void open_f(int unit, const char *filepath)
Wraps fortran "open" statement so we can open a Fortran file from a C program.
void delete_table_data_f()
Deletes the copies of the moda_tables arrays.
void get_nval_f(int lun, int *numNodes)
Get the number of values in the current subset.
void get_link_f(int **data, int *len)
Get copy of the moda_tables LINK array.
void nemtbb_f(int bufr_unit, int table_idx, char *unit_str, int unit_str_len, int *scale, int *reference, int *bits)
Get information about a Table B descriptor.
void get_tag_f(char **data, int *str_len, int *size)
Get copy of the moda_tables TAG array.