Historically women were rarely subjected to a judicial whipping, except maybe slaves. Women were usually just pilloried or stoned.

Another similar scene would be on a British man-o'war. The offender no doubt a fresh young midshipman. And of course, if a woman must be the victim (and I heartily lke that scenario,) one could just shift the setting to a pirate ship with recently captured prisoners.