environmentaltools.processes.create_mesh_dictionary
- environmentaltools.processes.create_mesh_dictionary(fname, uf=None)[source]
Load mesh parameters from Excel file into dictionary.
- Parameters:
fname (str) – Path to Excel file containing mesh configuration
uf (str, optional) – Specific worksheet/column name to extract. If None, returns entire file.
- Returns:
Dictionary with mesh parameters
- Return type:
dict
Notes
Reads Excel file using environmentaltools.common.read.xlsx. If uf is specified, extracts only that column/sheet as dictionary.
Examples
>>> params = create_mesh_dictionary('mesh_config.xlsx') >>> params_sheet = create_mesh_dictionary('mesh_config.xlsx', uf='grid1')