vissim2gmns.func_lib.vissim_fhz

vissim2gmns.func_lib.vissim_fhz(path_vissim_fhz: str, output_dir: str = '') DataFrame[source]

Convert vissim fhz file to pandas dataframe.

Parameters:
  • path_vissim_fhz (str) – the path to the vissim fhz file.

  • output_dir (str) – the directory to save the output file. Defaults to “”.

Example

>>> import vissim2gmns as vg
>>> path_vissim_fhz = "./vissim_data/xl_002_001.fhz"
>>> output_dir = "./output"
>>> # get the fhz data as a pandas dataframe without saving to file.
>>> df_fhz = vg.vissim_fhz(path_vissim_fhz)
>>>
>>> # get the fhz data as a pandas dataframe and save to csv file in the output_dir.
>>> df_fhz = vg.vissim_fhz(path_vissim_fhz, output_dir=output_dir)
Returns:

converted pandas dataframe.

Return type:

pd.DataFrame