Utils

Utils#

ControlVariables(control_dict)

PRMS control file class

MmrToMf6Dfw([control_file, control, ...])

PRMS Muskingum-Mann Routing (MMR) to MF6 Diffusive Wave (DFW).

utils.cbh_file_to_netcdf(input_file, ...[, ...])

Convert PRMS native CBH files to NetCDF format for pywatershed

utils.compile_prms([source, force])

Compile PRMS from source and return the path to the resulting binary.

utils.DomainSubset(full_control_file, ...[, ...])

Subset a domain.

utils.get_or_compile_prms_exe([exe_desc, ...])

Return the PRMS/GSFLOW executable, compiling from source if needed.

utils.get_prms_exe_name([exe_desc])

Return the binary filename for the given exe_desc and current platform.

utils.get_prms_exe_path([exe_desc])

Return the full path to the PRMS/GSFLOW binary in the repo bin/ dir.

utils.netcdf_utils.subset_netcdf_file(...[, ...])

Subset a netcdf file on to coordinate or dimension values.

utils.netcdf_utils.subset_xr(ds[, ...])

Subset an xarray Dataset or DataArray on to coord or dim values.