(1) the incarceration is for a misdemeanor offense, and the sentencing judge has not entered an order to the contrary; or
(2) the incarceration is part of a probation agreement for a felony offense, and the sentencing district judge has not entered an order to the contrary.