nwm_eval.pair_data.export_location_groups_with_lead_time#

nwm_eval.pair_data.export_location_groups_with_lead_time(db_path, output_path, table_name='joined_timeseries', group_size=200, start_time=None, end_time=None)[source]#

Export paired data with lead time by location groups.

Parameters:
  • db_path (Path) – Path to the DuckDB database containing the joined time series data.

  • output_path (Path) – Path to the output Parquet file for the paired data with lead time.

  • table_name (str) – Name of the table in the DuckDB database containing the joined time series data (default is “joined_timeseries”).

  • group_size (int) – Number of unique location IDs to include in each output file (default is 200).

  • start_time (str, optional) – Optional string in “YYYY-MM-DD HH:MM:SS” format to filter reference_time (inclusive).

  • end_time (str, optional) – Optional string in “YYYY-MM-DD HH:MM:SS” format to filter reference_time (inclusive).

Returns:

None. The function exports the paired data with lead time to the specified output path, split by location groups if necessary.