repurposed gdr_calc to output a set of flags that will show where certain grid points need to change rather than generate new values.  The mask will then be used in creating at.