pywfm.IWFMModel.get_groundwater_hydrograph_at_node_and_layer#
- IWFMModel.get_groundwater_hydrograph_at_node_and_layer(node_id, layer_number, begin_date=None, end_date=None, length_conversion_factor=1.0, volume_conversion_factor=1.0)#
Return a simulated groundwater hydrograph for a node and layer
- Parameters:
node_id (int) – id for node where hydrograph being retrieved
layer_number (int) – layer number for returning hydrograph. only used for groundwater hydrograph at node and layer
begin_date (str or None, default=None) – IWFM-style date for the beginning date of the simulated groundwater heads
end_date (str or None, default=None) – IWFM-style date for the end date of the simulated groundwater heads
length_conversion_factor (float or int, default=1.0) – hydrographs with units of length are multiplied by this value to convert simulation units to desired output units
volume_conversion_factor (float or int, default=1.0) – hydrographs with units of volume are multiplied by this value to convert simulation units to desired output units e.g. use 2.29568E-8 for ft^3 –> TAF
- Returns:
1-D array of dates 1-D array of hydrograph values
- Return type:
np.arrays
See also
IWFMModel.get_n_hydrograph_types
Return the number of different hydrograph types being printed by the IWFM model
IWFMModel.get_hydrograph_type_list
Return a list of different hydrograph types being printed by the IWFM model
IWFMModel.get_n_groundwater_hydrographs
Return the number of groundwater hydrographs specified in an IWFM model
IWFMModel.get_n_subsidence_hydrographs
Return the number of subsidence hydrographs specified in an IWFM model
IWFMModel.get_n_stream_hydrographs
Return the number of stream flow hydrographs specified in an IWFM model
IWFMModel.get_n_tile_drain_hydrographs
Return the number of tile drain hydrographs specified in an IWFM model
IWFMModel.get_groundwater_hydrograph_ids
Return the IDs for the groundwater hydrographs specified in an IWFM model
IWFMModel.get_subsidence_hydrograph_ids
Return the IDs for the subsidence hydrographs specified in an IWFM model
IWFMModel.get_stream_hydrograph_ids
Return the IDs for the stream hydrographs specified in an IWFM model
IWFMModel.get_tile_drain_hydrograph_ids
Return the IDs for the tile drain hydrographs specified in an IWFM model
IWFMModel.get_groundwater_hydrograph_coordinates
Return the x,y-coordinates for the groundwater hydrographs specified in an IWFM model
IWFMModel.get_subsidence_hydrograph_coordinates
Return the x,y-coordinates for the subsidence hydrograph locations specified in an IWFM model
IWFMModel.get_stream_hydrograph_coordinates
Return the x,y-coordinates for the stream flow observation locations specified in an IWFM model
IWFMModel.get_tile_drain_hydrograph_coordinates
Return the x,y-coordinates for the tile drain observations specified in an IWFM model
IWFMModel.get_groundwater_hydrograph
Return the simulated groundwater hydrograph for the provided groundwater hydrograph id
IWFMModel.get_subsidence_hydrograph
Return the simulated subsidence hydrograph for the provided subsidence hydrograph id
IWFMModel.get_stream_hydrograph
Return the simulated stream hydrograph for the provided stream hydrograph id
IWFMModel.get_tile_drain_hydrograph
Return the simulated tile drain hydrograph for the provided tile drain hydrograph id
Example
>>> from pywfm import IWFMModel >>> pp_file = '../Preprocessor/PreProcessor_MAIN.IN' >>> sim_file = 'Simulation_MAIN.IN' >>> model = IWFMModel(pp_file, sim_file) >>> dates, values = model.get_groundwater_hydrograph_at_node_and_layer(25, 1) >>> dates array(['1990-10-01', '1990-10-02', '1990-10-03', ..., '2000-09-28', '2000-09-29', '2000-09-30'], dtype='datetime64[D]') >>> values array([ 0. , 0. , 0. , ..., 180.9377, 181.0441, 181.1501]) >>> model.kill() >>> model.close_log_file()