def get_year_since_resonance(ringcube):
t0 = dt(<NUM_LIT>, <NUM_LIT:1>, <NUM_LIT>)<EOL>td = ringcube.imagetime - t0<EOL>return td.days / <NUM_LIT><EOL>
Calculate the fraction of the year since moon swap.