disaggregate_postme#

caf.mat.direction.od_to_pa.disaggregate_postme(postme_folder, synth_folder, zone_system, postme_segmentation, disaggregation_segments, *, postme_filename_template=None, synthetic_filename_template=None)[source]#

Disaggregate postME highway matrices to match synthetic segmentation.

Parameters:
  • postme_folder (Path) – Folders containing highway matrices as square CSVs (.csv or .csv.bz2).

  • synth_folder (Path) – Folders containing highway matrices as square CSVs (.csv or .csv.bz2).

  • zone_system (ZoningSystem) – Zone system of all matrices.

  • postme_segmentation (Segmentation) – Segmentation for the postME matrices.

  • disaggregation_segments (list[str]) – List of segments to disaggregate to.

  • postme_filename_template (str | None) – Expected template for the matrices CSVs, if None defaults to “{type}_{slice_name}”.

  • synthetic_filename_template (str | None) – Expected template for the matrices CSVs, if None defaults to “{type}_{slice_name}”.

Returns:

Disaggregated postME matrices.

Return type:

matrices.MatrixFiles

See also

matrices.MatrixFiles

for information on how the matrices are loaded.