Q_data_to_xarray#

mhm_tools.post.discharge_evaluation.Q_data_to_xarray(model_data_path, observed_data_path, sim_variable, observed_variable, model_keyword, facc_file=None, facc_variable='L11_fAcc', scc_gauges_file=None, evaluation_gauges=None, saving_path=None, model_file_name=None, lon_min=None, lon_max=None, lat_min=None, lat_max=None, resolution=0.1, n_jobs=1, date_slice=None, overwrite=False, direct_comparison=False, write_input_data_cache=False, min_overlapping_years=1, gauge_location_method='basinex', gauge_max_distance_cells=3, gauge_max_error=0.1)[source]#

Get observed and model Q data and save it as CSV files to be opened later.

This function is not part of the workflow, but a pre processing tool that for comodity has been stored here. This was done bc mrm_data_by_id.values was taking to much time to execute

Args: - mrm_data (xarray.DataArray): The mRM simulated data as an xarray DataArray. - observed_data (xarray.DataArray): The observed data as an xarray DataArray. - model_keyword (str): dir to be added to the path were files will be stored. - output_path (str): optional, saving path

Note: The gauge information dataset should contain the following variables: - “id1”: Gauge IDs - “new_x”: X-coordinates of gauges - “new_y”: Y-coordinates of gauges