pywatershed.utils.cbh_file_to_netcdf#
- pywatershed.utils.cbh_file_to_netcdf(input_file, parameters, nc_file, clobber=True, output_vars=None, zlib=True, complevel=4, global_atts=None, rename_vars=None, chunk_sizes=None, time_units='days since 1979-01-01 00:00:00', time_calendar='standard')[source]#
Convert PRMS native CBH files to NetCDF format for pywatershed
- Parameters:
parameters (
PrmsParameters
) – the Parameters object of PRMS parameters for this domainclobber (
bool
) – Overwrite an existing NetCDF file?output_vars (
Optional
[list
]) – Subset of variables in the CBH to write?zlib (
bool
) – use zlib compression?complevel (
int
) – The level of compression.global_atts (
Optional
[dict
]) – A dictionary of meta data for the variables.rename_vars (
Optional
[dict
]) – a dictionary for mapping CBH variable nameschunk_sizes (
Optional
[dict
]) – along each dimension, default {“time”: 30, “hru”: 0},time_units – default “days since 1979-01-01 00:00:00”,
time_calendar – default”standard”,
- Return type: