environmentaltools.common.create_mesh_dictionary

environmentaltools.common.create_mesh_dictionary(file_name: str, sheet_name: str = None)[source]

Read Excel file and create mesh parameter dictionary.

Loads mesh configuration from an Excel file and optionally extracts a specific sheet as a dictionary.

Parameters:
  • file_name (str) – Path to the Excel file with mesh parameters.

  • sheet_name (str, optional) – Name of specific sheet to extract as dictionary. If None, returns the entire DataFrame. Defaults to None.

Returns:

Dictionary of parameters if sheet_name specified,

otherwise returns full DataFrame.

Return type:

dict or pd.DataFrame