def continuous_ls(ls):
    """Tries to convert Ls values to be continuous.
    Does this by looking for negative changes in Ls values and assumes that's the next year of data"""
    loop = -1
    old = 360.0
    for i, v in enumerate(ls):
        if v < old + 1e-05:
            loop += 1
        ls[i] += loop * 360.0
        old = v
    return ls
