Function eccodes_sys::grib_nearest_find_multiple[][src]

pub unsafe extern "C" fn grib_nearest_find_multiple(
    h: *const grib_handle,
    is_lsm: c_int,
    inlats: *const f64,
    inlons: *const f64,
    npoints: c_long,
    outlats: *mut f64,
    outlons: *mut f64,
    values: *mut f64,
    distances: *mut f64,
    indexes: *mut c_int
) -> c_int
Expand description

Find the nearest point of a set of points whose latitudes and longitudes are given in the inlats, inlons arrays respectively. If the flag is_lsm is 1 the nearest land point is returned and the GRIB passed as handle (h) is considered a land sea mask. The land nearest point is the nearest point with land sea mask value>=0.5. If no nearest land points are found the nearest value is returned. If the flag is_lsm is 0 the nearest point is returned. values, distances, indexes (in the “values” array) for the nearest points (ilons,ilats) are returned. The distances are given in kilometres.

@param h : handle from which geography and data values are taken @param is_lsm : lsm flag (1-> nearest land, 0-> nearest) @param inlats : latitudes of the points to search for @param inlons : longitudes of the points to search for @param npoints : number of points (size of the inlats,inlons,outlats,outlons,values,distances,indexes arrays) @param outlats : returned array of latitudes of the nearest points @param outlons : returned array of longitudes of the nearest points @param values : returned array of data values of the nearest points @param distances : returned array of distances from the nearest points @param indexes : returned array of indexes of the nearest points @return 0 if OK, integer value on error