Closed Wenbo-Duan closed 2 years ago
The two filters are functionally the same. By testing the maximum longitude value in the track (t.Longitude.max()
) is greater than the minimum bounding longitude (xMin
), we check that at least one point of the track is in the simulation domain (or within margin
of the edge). This is the same as testing the size of the array of values returned by the np.where
clause.
Hi - when calculating wind field from simulated tracks, it seems that the tracks are not properly filtered by the inRegion function
The filter does not ensure that the track will enter the simulation by only comparing the max value in the array. Am I misunderstanding the intention of the function?
Maybe the following filter can be applied:
Thank you in advance.