module for computing Gregory ON/OFF quantities
trying to remember what we were up to