Refactor resampling into plant because it operates on the plant data