wrfhydropy.Domain
- class wrfhydropy.Domain(domain_top_dir: str, domain_config: str, compatible_version: str | None = None, hydro_namelist_patch_file: str = 'hydro_namelist_patches.json', hrldas_namelist_patch_file: str = 'hrldas_namelist_patches.json')[source]
Class for a WRF-Hydro domain, which constitutes all domain-specific files needed for a setup.
Methods
copy_files(dest_dir[, symlink])Copy domain files to a new directory :Parameters: * dir -- The destination directory for domain files * symlink -- Symlink domain files instead of copy
- __init__(domain_top_dir: str, domain_config: str, compatible_version: str | None = None, hydro_namelist_patch_file: str = 'hydro_namelist_patches.json', hrldas_namelist_patch_file: str = 'hrldas_namelist_patches.json')[source]
Instantiate a Domain object :Parameters: * domain_top_dir – Parent directory containing all domain directories and files.
domain_config – The domain configuration to use, options are ‘NWM’, ‘Gridded’, or ‘Reach’
compatible_version – String indicating the compatible model version, required if no
.version file included in domain_top_dir.
hydro_namelist_patch_file – Filename of json file containing namelist patches for
hydro namelist
hrldas_namelist_patch_file – Filename of json file containing namelist patches for
hrldas namelist
Methods
__init__(domain_top_dir, domain_config[, ...])Instantiate a Domain object :Parameters: * domain_top_dir -- Parent directory containing all domain directories and files. * domain_config -- The domain configuration to use, options are 'NWM', 'Gridded', or 'Reach' * compatible_version -- String indicating the compatible model version, required if no * .version file included in domain_top_dir. * hydro_namelist_patch_file -- Filename of json file containing namelist patches for * hydro namelist * hrldas_namelist_patch_file -- Filename of json file containing namelist patches for * hrldas namelist.
copy_files(dest_dir[, symlink])Copy domain files to a new directory :Parameters: * dir -- The destination directory for domain files * symlink -- Symlink domain files instead of copy
Attributes
domain_top_dirpathlib.Paths to *.TBL files generated at compile-time.
domain_configSpecified configuration for which the domain is to be used, e.g. 'NWM_ana'.
compatible_versionSource-code version for which the domain is to be used.
hydro_namelist_patchesDomain-specific hydro namelist settings.
hrldas_namelist_patchesDomain-specific hrldas namelist settings.
hydro_filesFiles specified in hydro_nlist section of the domain namelist patches
nudging_filesFiles specified in nudging_nlist section of the domain namelist patches
lsm_filesFiles specified in noahlsm_offline section of the domain namelist patches
nudging_dirpath to the nudging obs directory
forcing_dirpath to the forcing directory