subsample
- subsample(gpt_value, gpt_location)
Returns a
Geopoints
containing the same locations (latitude, longitude and height) as ingpt_location
, but whose values are fromgpt_value
(or a missing value if the point is not found ingpt_value
).- Parameters
- Return type
The resulting
Geopoints
is sorted in the same way as withgeosort()
. This means that extra care is needed to perform operations between the results ofsubsample()
and anotherGeopoints
: make sure you callgeosort()
on the otherGeopoints
beforehand so that the points could be aligned.Points with missing latitudes or longitudes will still be in the output, but the rule is that such a point is defined not to be at the same location as another point, even if its lat/lon are also missing. Use
remove_missing_values()
to get rid of the missing valued points in the returnedGeopoints
.Note
It is advised to remove missing lat/lon points using
remove_missing_latlons()
before usingsubsample()
orgeosort()
.