nc_varsearchΒΆ
nc_varsearch searches in a given variable for the index of that value that is greater of equal than x. The values in variable must be sorted monotonically increasing and should not contain missing values.
- index = nc_varsearch(ncid, varid, x)
Return Value
index is the index such that var[index] <= x < var[index+1]. index is in the range 0 .. n-1.
In case of an error the function returns a value < 0. nc_last_error returns the error code.
Parameters
- ncid
Identifies the netCDF file.
- varid
varid is the ID of a variable.
- x
x is a scalar value.
Comment
The function can only be used for UniPlot data files. See nc_create.
History
Version |
Description |
---|---|
R2012 (5.40.0) |
New. |
id-1626420