WRF-Hydro Modeling System

Regridding Scripts

WRF-Hydro logo web banner

Regridding Scripts

Beta tag

WRF-Hydro Meteorological Forcing Engine

 A new, open-source, Python meteorological pre-processor has been developed for preparing meteorological input data into the community WRF-Hydro system.  This new tool, called the WRF-Hydro Meteorological Forcing Engine (MFE) supports the ingest and processing of a wide variety of meteorological data from satellites, weather radar, numerical weather prediction (NWP) models, climate models and various analysis and re-analysis products.  In addition to basic processing capabilities like regridding, reformatting, and standardizing meteorological data from different sources the WRF-Hydro MFE also contains several important data processing routines for performing downscaling and statistical bias correction which can significantly improve the quality of data for high-resolution hydrologic modeling applications.  The MFE, which produces cf-compliant netcdf data files ready for input into WRF-Hydro, offers a significant capability in lowering the barrier to entry for performing complex hydrologic modeling research and forecasting operations.

  • The code is available here. Currently, only readme level documentation and a jupyternotebook lesson are available for usage guidance and support limited.
  •  To provide feedback on the beta version please fill out this form

Earth System Modeling Framework (ESMF) Regridding Scripts


Below we provide script packages to regrid meteorological forcing data to a smaller, completely encompassed WRF-Hydro domain. The tools used here utilize the ESMF regridding libraries contained within the NCL software. Download and install NCL 6.1 or later.

Each compressed tar.gz package contains NCL-based regridding scripts that will regrid meteorological forcing data onto a WRF/WRF-Hydro 'GEOGRID' domain. Each package contains sample input data, a sample geogrid file, and a README guide.

ESMF Regridding Script Packages
Memory Usage (RAM needed)
NLDAS197.89MiB
GLDAS615.03MiB 
HRRR1342.56MiB
MRMS15369.06MiB
GFS729.73MiB
RAP204.45MiB
WRF*237MB

For further information see  Regridding using NCL and the Earth System Modeling Framework (ESMF) software.

*Note: The WRF regridding package can not be downloaded on a Windows machine. 
Note: 
Since GFS, HRRR, and RAP are forecast products, were we to generate output files from this script with the proper naming conventions for WRF-Hydro there would potentially be more than one file with the same name. Therefore, we leave the step of renaming output files to meet the WRF-Hydro input filename convention to the user. However, the scripts if used with the provided example input data do print out the proper filename convention. The user can look at the scripts to see how they can alter them to work with their own forcing data files.
These scripts were updated on 05 September 2019 to address the following issues:
• A bug that caused the GFS regridding script to crash because a variable was not deleted (GFS)
• A bug that caused incorrect filenames to be generated near the end of a month (all forecast datasets)
• A bug that caused the GFS script to fail when regridding source files with forecast hours of 48 hours or greater (GFS)

Related data are available from the following sources:
NLDAS – North American Land Data Assimilation System
HRRR – High-Resolution Rapid Refresh
MRMS – Multi Radar Multi Sensor System  or https://vlab.ncep.noaa.gov/web/mrms
RAP – Rapid Refresh
GFS – Global Forecast System