Handling agromet in model and persistence