find
- find(fs, value[, area_or_mask])
- find(fs, range[, area_or_mask])
Returns a list of locations (lat/lon pairs) where the values of
fs
equal to or within the range ofvalue_or_range
.- Parameters
- Return type
list of lists
The primary search condition is defined by
value
orrange
:if
value
is specified the locations wherefs
equals to this number are returnedif
range
is specified as a list of [v1, v2] the locations wherefs
values are within the closed range of [v1, v2] are returned
The optional
area_or_mask
argument can pose an additional search condition:if
area_or_mask
is a list of four numbers it defines the area as [North,West,South,East] for the searchif
area_or_mask
is aFieldset
with one field it defines a mask for the search, e.i. only those gridpoints are checked where the mask value is non-zero.
Missing values in
fs
are not returned.