subtract()
The hec-python-library equivalent of Jython method subtract():
Not Implemented
This method is not implemented in release 1.1
TimeSeries objects use standard python mathematical operators instead of mathematical methods.
Note that the result of a mathematical operation involving two TimeSeries objects will have
only the times contained in both TimeSeries.
# instead of add()
ts2 = ts1 + 5.4
ts1 += 5.4
ts3 = ts1 + ts2
ts1 += ts2
# instead of subtract()
ts2 = ts1 - 5.4
ts1 -= 5.4
ts3 = ts1 - ts2
ts1 -= ts2
# instead of multiply()
ts2 = ts1 * 5.4
ts1 *= 5.4
ts3 = ts1 * ts2
ts1 *= ts2
# instead of divide()
ts2 = ts1 / 5.4
ts1 /= 5.4
ts3 = ts1 / ts2
ts1 /= ts2
# instead of integerDivide()
ts2 = ts1 // 5.4
ts1 //= 5.4
ts3 = ts1 // ts2
ts1 //= ts2
# instead of modulo()
ts2 = ts1 % 5.4
ts1 %= 5.4
ts3 = ts1 % ts2
ts1 %= ts2
# instead of exponentiation()
ts2 = ts1 ** 5.4
ts1 **= 5.4
ts3 = ts1 ** ts2
ts1 **= ts2
# instead of negative()
ts2 = -ts1