pywfm.IWFMModel.get_n_ag_crops#

IWFMModel.get_n_ag_crops()#

Return the number of agricultural crops simulated in an IWFM model

Returns:

number of agricultural crops (both non-ponded and ponded)

Return type:

int

Example

>>> from pywfm import IWFMModel
>>> pp_file = '../Preprocessor/PreProcessor_MAIN.IN'
>>> sim_file = 'Simulation_MAIN.IN'
>>> model = IWFMModel(pp_file, sim_file)
>>> model.get_n_ag_crops()
7
>>> model.kill()
>>> model.close_log_file()