Migrating from GageInterp to HEC-MetVue MetInterp
With the official retirement of GageInterp, this tutorial outlines how to convert point precipitation data into gridded precipitation data using HEC-MetVue's MetInterp. This process covers adding spatial attributes to DSS data using a configuration file, generating a MetInterp control file, configuring the command-line utility, and automating the run using an HEC-RTS Python script.
Software Version Used
CWMS 3.5 (HEC-MetVue 3.4.1 and CWMS-Vue 4.0.0) was used to develop this tutorial.
Tutorial Data
Download the following files to follow along with this tutorial:
Consolidated download of the 5 files above:
Step 1: Prepare the CSV File
GageInterp control files store gage names, coordinates, DSS paths, and time zones (starting around line 100). Because older point precipitation DSS files often lack spatial attributes, you must assign spatial metadata before MetInterp can process them.
- Create a CSV file with the following exact headers: pathname,x,y,xyDatum,xyUnits,coordSys,coordID,timeZone
- Pathname: The DSS pathname (e.g., //HarpethR_Bellevue/PRECIP-INC//15MIN/ExampleData/)
- X: Longitude
- Y: Latitude
- xyDatum: 2 for this example
- 0: Unset, 1: NAD83, 2: NAD27, 3: WGS84, 4: WGS72, 5: Local
- xyUnits: 3 for this example
- 0: Unset, 1: English, 2: SI, 3: Decimal Degrees, 4: DMS
- CoordSys: 1 for this example
- 0: None, 1: Lat/Lon, 2: State Plane FIPS, 3: State Plane ADS, 4: UTM, 5: Local
- CoordID: leave blank for this example
- If using UTM or State Plane, uncomment line 51 in the script
- TimeZone: Match the GMT setting from your original GageInterp control file
- Ensure your CSV is saved with UTF-8 encoding (verified via Notepad++).
A CSV file (LocationScriptConfig.csv) with all necessary information is provided to follow along with this tutorial. You can use it as a template to build one for your specific dataset if needed.
Step 2: Run the Script in CWMS-Vue
- Open the provided DSS_SupInfo_set-location.py script (provided in the DSS_SupInfo_set-location.7z file).
- Update the file paths in lines 34 and 35:
- Line 34: Path to the configuration CSV file.
- Line 35: Path to the target DSS file.
- Run the script inside CWMS-Vue.
Open the target DSS file, select your data, and navigate to Display > Supplemental Information. You should now see newly generated location information.

You should also see a new DSS record for each location with a C-Part of Location Info.

Step 3: Create the MetInterp Control File
If you need more information, please refer to Creating an HEC-MetVue Project for instructions on how to create a session before continuing.
- Open HEC-MetVue and load your project,
- Select your Map Window and click the MetInterp icon in the main ribbon to open the editor.

- Click New to create a control file
- (e.g., Tutorial.metinterp)

- (e.g., Tutorial.metinterp)
- Input the necessary information on the General Settings tab.
- Configure the Time, Parameter, and Unit Settings:
- Start Time: 09Feb2025 0000
- End Time: 16Feb2025 0000
- Time Step: 15 Minutes
- Time Zone: GMT
- Parameter: PRECIP-INC
- Data Type: PER-CUM
- Units: IN
- Configure the Spatial Domain:
- Coordinate System: Standard Hydrologic Grid (SHG) coordinate system.
- Lower Left X: 380
- Width: 60
- Lower Left Y: 725
- Height: 35
- Grid Cell Size: 1
- Configure the Missing Data Options:
- Allowable Missing Data: 20% (Gages missing more than 20% of data during the timeframe are excluded).
- Default Value: 0.0 (Replaces missing values for valid gages).
- Configure the Time, Parameter, and Unit Settings:
- Input the necessary information on the Gage Settings tab.
- Click Add Time Series and browse to your updated DSS file.
- Select the relevant gages matching your old GageInterp control file and click Add Pathnames.
- Use Plot All Time Series to visually validate the data.

- Configure the Interpolation and Adjustment Settings tab.
- Click Add to create a new interpolator and adjust:
- Name: ID2W
- Spatial Interpolation Method: InverseDistanceSquared
- Vertical Adjustment Method: None
- Temporal Sampling Method: None
- Click Add to create a new interpolator and adjust:
- Configure the Output Settings tab.
- Provider: DSS
- Save Type: SHG
- DSS File: Target output path for the grids.
- Path Parts:
- A: SHG
- B: NASHVILLE
- F: INT-ID2W
- F-Part Modifier: Replace
- Switch the Map Window to be the active Map Window in your session.
- Click Apply to save your edits, then Run.
Your results should look like the figure below.

Example MetInterp Control File
Download this file (Nashville.metinterp) if you want the completed MetInterp file for this tutorial.
Step 4: Configure the MetInterp Command Utility
To automate MetInterp runs via script, you need to prepare its command-line wrapper.
- Navigate to your /HEC-MetVue/utilities/windows/ folder.
- Copy MetInterp.cmd and rename the copy.
- Open the copied .cmd file in a text editor and make two edits:
- Change line 45 from set usage_help=-? to set usage_help=%*
- This change enables argument passing.
- Remove the pause command at the end of the file to prevent script execution stalls.
- Change line 45 from set usage_help=-? to set usage_help=%*
Step 5: Automate in HEC-RTS via Scripting
To execute MetInterp dynamically during an HEC-RTS forecast (handling start/end times and file destinations automatically), use a Python script.
- Download and unzip the runMetInterp.7z file.
- Open the script and update the two required configuration variables near the top:
- MetInterp_Control: Set to your control file name (e.g., Nashville.metinterp) assuming it resides in the HEC-MetVue project directory.
- CustomMetInterpInstance: Set to your modified command utility name from Step 4 above.
- Open HEC-RTS, load your watershed, and open/create a forecast.
- Ensure all required precipitation gage data is extracted.
- Execute runMetInterp.py within the HEC-RTS Script Editor.
Once complete, a confirmation dialog will appear, and the generated MetInterp grids will be available within the forecast.dss file.
Additional Resources
Refer to the official HEC-DSS Documentation for more details on location information.
Refer to the official HEC-MetVue Documentation for more details on MetInterp.