Tme series data don't overlap after filtering in TMS
Opened this issue · 0 comments
TMS can receive time-series that overlap in time when passed into the function, but may get unaligned after filtering out the suspected erroneous points. This case is not handled in TMS currently.
Lines 359 to 368 in a85f1d6
Example:
Using default Area-Deviation threshold (5%), for the Taylor park reservoir (Gunnison, CO) in the test suite, the threshold is very low (0.37 sq. km.). This causes most of the areas to get filtered out and the resultant dataframe's max date is less than the SAR's min date. This results in an empty dataframe when clip_ts
is used. Currently, the hotfix was resolved by increasing the AREA_DEVIATION_THRESHOLD
value for smaller reservoirs thru 03a1b8c. The new default thresholds are as follows:
- 5% for reservoirs with area >= 100 sq. km.
- 10% if 100 > area >= 10 sq. km.
- 25% if area < 10 sq. km.