def key(x):
    if (x.relative_water_level() is not None):
        return x.relative_water_level()
    else:
        return float(0)
def key(x):
    if (x.relative_water_level() is not None):
        return x.relative_water_level()
    else:
        return float(0)