Pre-processing Utility Scripts for use with WRF-Hydro
create_wrfinput.R
Project
An R script to create a very basic WRF-Hydro initialization file (wrfinput) from a WRF geogrid file and a set of user-specified conditions. The script produces fields of spatially uniform initial model states of soil moisture, soil temperature, soil liquid water content and skin temperature among a few other variables necessary for model cold-start initialization. The script uses NCO commands to create this file. This file can be used as a 'cold start' for long-term model spin-up or users can overwrite the fields in the file created. Please refer to the script header for specific use information. Sophisticated and WRF-savvy users can bypass this script and use the WRF utility REAL.EXE to create a wrfinput file from model or reanalysis products. Note: This script does not currently work with the Noah LSM.
Version & Date
WRF-Hydro V5.3 and older
BETA RELEASE: Create_wrfinput_from_Geogrid.py
Project
A new Python version of the "create_wrfinput.R" script. This script should have similar functionality to the R script above and is used to create a simple cold-start initialization file for Noah-MP from an existing geogrid.
Version & Date
WRF-Hydro V5.3 and older
create_SoilProperties.R
Project
An R script developed for the purpose of creating OPTIONAL spatially distributed soil and vegetation parameter files for Noah-MP and WRF-Hydro. These are read from the provided parameter tables (e.g., MPTABLE.TBL, HYDRO.TBL, etc.) and mapped to the appropriate soil or vegetation class map to create the 2D and 3D fields. These default parameter values can now be manipulated in 2 and 3 dimensions (e.g., via model calibration). After creating this file, use the compile option "SPATIAL_SOIL =1" to activate it, and specify the file in the namelist.hrldas. If the spatial soil option is turned off, the code will default to using the traditional TBL files and this file is not required. Please refer to the script header for specific use information.
Version & Date
WRF-Hydro V5.3 and V5.2
BETA RELEASE: Create_SoilProperties_and_Hydro2D.py
Project
A new Python version of the "create_SoilProperties.R" script. This script should have similar functionality to the R script above and is used to create spatially distributed parameter files from an existing geogrid file and parameter TBL files.
Version & Date
WRF-Hydro V5.3
LEGACY: create_soilproperties.R (for use with v5.1.x model code)
Project
An R script developed for the purpose of creating OPTIONAL spatially distributed soil and vegetation parameter files for Noah-MP and WRF-Hydro Version 5.1.x These are read from the provided parameter tables (e.g., MPTABLE.TBL, HYDRO.TBL, etc.) and mapped to the appropriate soil or vegetation class map to create the 2D and 3D fields. These default parameter values can now be manipulated in 2 and 3 dimensions (e.g., via model calibration). After creating this file, use the compile option "SPATIAL_SOIL =1" to activate it, and specify the file in the namelist.hrldas. If the spatial soil option is turned off, the code will default to using the traditional TBL files and this file is not required. Please refer to the script header for specific use information.
Version & Date
WRF-Hydro V5.1.x
Related Program
Related Solution Area
Related Technology
Related Tag