iwfm.hdf5.hdf2xlsx_swat¶
- iwfm.hdf5.hdf2xlsx_swat(hdf_file, output_file, len_fact=1.0, len_units='FEET', area_fact=2.2957e-05, area_units='AC', vol_fact=2.2957e-05, vol_units='ACFT', verbose=False, debug=False)[source]¶
Convert IWFM Small Watersheds Budget HDF5 file to Excel workbook.
- Parameters:
hdf_file (str) – Path to input HDF5 file
output_file (str) – Path to output Excel file (.xlsx)
len_fact (float, default=1.0) – Length conversion factor (multiplier)
len_units (str, default='FEET') – Length units for output
area_fact (float, default=0.000022957) – Area conversion factor (sq ft to acres: 0.0000229568411)
area_units (str, default='AC') – Area units for output (AC for acres)
vol_fact (float, default=0.000022957) – Volume conversion factor (cu ft to acre-ft: 0.0000229568411)
vol_units (str, default='ACFT') – Volume units for output (ACFT for acre-feet)
verbose (bool, default=False) – Print progress messages
debug (bool, default=False) – Enable debug output (more detailed than verbose)
Notes
Creates an Excel workbook with: - Sheet1 (empty) - One sheet per location with budget data
Default conversion factors: - Length: 1.0 (no conversion, stays in feet) - Area: 0.000022957 (square feet to acres, exact: 1/43560 = 0.0000229568411) - Volume: 0.000022957 (cubic feet to acre-feet, exact: 1/43560 = 0.0000229568411)