Split out from the pred_obs project