Primary production in agriculture