cdms2.dataset¶
-
isOverlapVector
(vec1, vec2, atol=1e-08)[source]¶ Is Overlap Vector
- Parameters
- vec1Input arrays to compare
- vec2Input arrays to compare
- atolfloat, optional
- Absolute tolerance, The absolute differenc is equal to **atol Default is 1e-8**
- Returns
- (isoverlap, index) :
- where isoverlap is true if a leading portion of vec1 is a subset of vec2;
index is the index such that vec1[0] <= vec2[index]
If indexl == len(vec2), then vec1[0] > vec2[len(vec2) - 1]