9 * Definitions and data structures for WRF IO Internal.
12 #ifndef WRF_IO_INT_IDX_H
13 #define WRF_IO_INT_IDX_H
19 #ifndef MAP_FILE /* 4.3+BSD defines & needs for */
20 # define MAP_FILE 0 /* mmap on files, all others don't */
23 /** Maximum length of a string.
24 * This has been equivalently defined in Fortran.
28 /** Record meta information. **/
30 int64_t offset
; /**< Offset to position in the file **/
31 int64_t data_off
; /**< Offset to data **/
32 int32_t data_count
; /**< Number of data elements **/
33 int32_t data_type
; /**< WRF type of data elements **/
34 char name
[STR_LEN
]; /**< Name of the variable **/
35 char date
[STR_LEN
]; /**< Date of the variable **/
38 /** Create an inventory of a WRF IO Internal file **/
39 int32_t io_int_index(const char *, struct r_info
**, int32_t *);
41 /** Lookup the data offset and count for a record **/
42 int32_t io_int_loc(const char *, struct r_info
*, int32_t, int64_t *, int32_t *);
47 #endif /* WRF_IO_INT_IDX_H */