Function eccodes_sys::grib_handle_new_from_index[][src]

pub unsafe extern "C" fn grib_handle_new_from_index(
    index: *mut grib_index,
    err: *mut c_int
) -> *mut grib_handle
Expand description

Create a new handle from an index after having selected the key values. All the keys belonging to the index must be selected before calling this function. Successive calls to this function will return all the handles compatible with the constraints defined selecting the values of the index keys. When no more handles are available from the index a NULL pointer is returned and the err variable is set to GRIB_END_OF_INDEX.

@param index : an index created from a file. @param err : 0 if OK, integer value on error. GRIB_END_OF_INDEX when no more handles are contained in the index. @return GRIB handle.