Open rogerkuou opened 6 months ago
and also this:
As discussed, scipy KDTree works if coordinates (lat, lon, time) are duplicated and the values of variables e.g. temperature are the same too, I added a test for this. If the values of variables are not the same for duplicated coordinates, MacOs and linux behave differently to pick up a value related to the nearest neighbor.
Note that it is a rare case if there are duplicated coordinates with two different values for one variable. However, this cases might happen in data preparations. For example, if coordinates are somehow rounded up.
Issue coming from a discussion in PR #66
A duplicated coordinate (lat, lon, time) will cause the spatial temporal query
enrich_from_dataset
fail. We need to create a check function to validate there is no duplicated 3D coordinates in an STM.Also quote Sarah's comments here which are good for consideration: