pywfm.IWFMModel.get_zone_ag_pumping_average_depth_to_water#
- IWFMModel.get_zone_ag_pumping_average_depth_to_water(elements_list, zones_list)#
Return zonal depth-to-groundwater values that are weighted-averaged with respect to agricultural pumping rates during a model run
- Parameters:
elements_list (list or np.ndarray) – list of all elements corresponding to all zones where average depth to water is calculated
zones_list (list or np.ndarray) – list of zone ids corresponding to each element in the elements list
- Returns:
average depth to water for each zone specified
- Return type:
np.ndarray
Note
This method is intended to be used when is_for_inquiry=0 while performing a simulation i.e. after calling IWFMModel.simulate_for_one_timestep
See also
IWFMModel.get_subregion_ag_pumping_average_depth_to_water
Return subregional depth-to-groundwater values that are weighted-averaged with respect to agricultural pumping rates during a model run
Example
>>> from pywfm import IWFMModel >>> pp_file = '../Preprocessor/PreProcessor_MAIN.IN' >>> sim_file = 'Simulation_MAIN.IN' >>> model = IWFMModel(dll, pp_file, sim_file, is_for_inquiry=0) >>> while not model.is_end_of_simulation(): ... # advance the simulation time one time step forward ... model.advance_time() ... ... # read all time series data from input files ... model.read_timeseries_data() ... ... # Simulate the hydrologic process for the timestep ... model.simulate_for_one_timestep() ... ... # get subregion average depth to water ... elements = model.get_element_ids() ... subregions = model.get_subregions_by_element() ... avg_dtw = model.get_zone_ag_pumping_average_depth_to_water(elements, subregions) ... print(avg_dtw) ... ... # print the results to the user-specified output files ... model.print_results() ... ... # advance the state of the hydrologic system in time ... model.advance_state() . . . * TIME STEP 2 AT 10/02/1990_24:00 [-999. 0.] * TIME STEP 3 AT 10/03/1990_24:00 [-999. 0.] * TIME STEP 4 AT 10/04/1990_24:00 [-999. 0.] ... * TIME STEP 3651 AT 09/28/2000_24:00 [ 266.03824182 0. ] * TIME STEP 3652 AT 09/29/2000_24:00 [ 266.19381051 0. ] * TIME STEP 3653 AT 09/30/2000_24:00 [ 266.34883635 0. ] >>> model.kill() >>> model.close_log_file()