iwfm.hdf5ΒΆ

Classes, methods and functions to read, write and modify IWFM HDF5 output files.

Uses h5py for cross-platform HDF5 access (Unix/Linux/macOS/Windows). The pywfm fallback is DEPRECATED and will be removed in a future version.

Modules

cropbud2csv(bud_file_ag, bud_file_pond, outfile)

Read crop-based information from IWFM Land and Water Use and Root Zone Budget HDF files and write to a CSV file in a format amenable to database input.

get_budget_data_h5

Read budget data from IWFM HDF5 file using h5py.

get_budget_data_pywfm

Open an IWFM Budget HDF file and retreive all of the data.

get_zbudget_data_h5

Read zone budget data from IWFM HDF5 file using h5py.

get_zbudget_data_pywfm

Open an IWFM Budget HDF file and retreive all of the data.

get_zbudget_elem_vals_h5

Read zone budget element values from IWFM HDF5 file using h5py.

get_zbudget_elem_vals_pywfm

Open an IWFM ZBudget HDF file and retreive all of the data using DWR's PyWFM package to interface wth the IWFM DLL and create a dataframe with the sum of all of the values in each column for all elements.

get_zbudget_elemids

Return the element IDs referenced in an IWFM Z-Budget zone definition file.

hdf2bud_core

Convert an IWFM Budget HDF5 file to IWFM text-budget format.

hdf2bud_diversions(hdf_file, output_file[, ...])

Convert IWFM Stream Diversions HDF5 file to text format.

hdf2bud_gw(hdf_file, output_file[, ...])

Convert IWFM Budget HDF5 file to text format.

hdf2bud_lw(hdf_file, output_file[, ...])

Convert IWFM Land & Water Use Budget HDF5 file to text format.

hdf2bud_rz(hdf_file, output_file[, ...])

Convert IWFM Root Zone Budget HDF5 file to text format.

hdf2bud_snodes

Convert IWFM Stream Node Budget HDF5 file to text format.

hdf2bud_stream(hdf_file, output_file[, ...])

Convert IWFM Stream Budget HDF5 file to text format.

hdf2bud_swat(hdf_file, output_file[, ...])

Convert IWFM Small Watersheds Budget HDF5 file to text format.

hdf2bud_unsat(hdf_file, output_file[, ...])

Convert IWFM Unsaturated Zone Budget HDF5 file to text format.

hdf2xlsx_core

Convert an IWFM Budget HDF5 file to an Excel workbook.

hdf2xlsx_diversions(hdf_file, output_file[, ...])

Convert IWFM Stream Diversions HDF5 file to Excel workbook.

hdf2xlsx_gw(hdf_file, output_file[, ...])

Convert IWFM Groundwater Budget HDF5 file to Excel workbook.

hdf2xlsx_lw(hdf_file, output_file[, ...])

Convert IWFM Land & Water Use Budget HDF5 file to Excel workbook.

hdf2xlsx_rz(hdf_file, output_file[, ...])

Convert IWFM Root Zone Budget HDF5 file to Excel workbook.

hdf2xlsx_snodes

Convert IWFM Stream Node Budget HDF5 file to Excel workbook.

hdf2xlsx_stream(hdf_file, output_file[, ...])

Convert IWFM Stream Budget HDF5 file to Excel workbook.

hdf2xlsx_swat(hdf_file, output_file[, ...])

Convert IWFM Small Watersheds Budget HDF5 file to Excel workbook.

hdf2xlsx_unsat(hdf_file, output_file[, ...])

Convert IWFM Unsaturated Zone Budget HDF5 file to Excel workbook.

hdf2zbud_gw(hdf_file, zone_file, output_file)

Convert IWFM Groundwater Zone Budget HDF5 file to text format.

hdf2zxlsx_gw(hdf_file, zone_file, output_file)

Convert IWFM Groundwater Zone Budget HDF5 file to Excel workbook.

hdf5

Typer subapp for IWFM HDF5 budget conversion commands.

hdf5_utils

Shared utility functions for h5py-based HDF5 file access.

hdf_exceptions

Custom exceptions for the iwfm.hdf5 module.

hdf_metadata

HDF5 metadata access for IWFM output files.

hdf_metadata_base

Abstract base classes and data structures for HDF5 metadata access.

hdfbud2csv(bud_file, outfile[, ...])

Read information from an IWFM Budget HDF file and write to a CSV file in a format amenable to database input.

print_methods_hdf(filename[, spacing, verbose])

Print dll methods for an hdf file.

read_hdf5(filename[, verbose])

Read an HDF5 file.

zbud_gw_core

Shared read/aggregate engine for IWFM groundwater zone-budget HDF5 files.