Optimization of water and fertilizer for production of crops and rice based cropping pattern in relation to farm resources