Effect of modulation on the onset of thermal convection in a rotating fluid