Physically consistent mesoscale model evaluation in complex terrain
Description
Python scripts implementing the physically consistent grid point selection (PCGP) methodology from Simonet et al. (2025, QJRMS, https://doi.org/10.1002/qj.70063) for WRF model evaluation in complex terrain. Includes: (1) Ensemble extraction - extracts 3×3 grid point ensembles (9 points) around station locations, (2) Lapse rate calculator with temporal valley atmosphere evolution, and (3) PCGP selection based on slope angle, slope aspect, albedo, and roughness length. Example datasets for 17 Alpine stations across 4 WRF nested domains (9, 3, 1, 0.33 km resolution). Grid point selection impact on model performance is comparable to changing model resolution. Critical requirement: observed or literature-based reference values for physical parameters at measurement sites.
This toolkit implements the physically consistent grid point (PCGP) selection methodology described in:
Simonet, G., Rotach, M. W., & Lehner, M. (2025). Physically consistent mesoscale model evaluation in complex terrain. Quarterly Journal of the Royal Meteorological Society. https://doi.org/10.1002/qj.70063
What This Toolkit Does
The package provides three integrated Python tools for WRF model evaluation in complex terrain:
- Ensemble Extraction Tool
- Extracts 3×3 grid point ensembles (9 points total) around station locations
- Processes multiple nested WRF domains simultaneously
- Organized output structure for easy analysis
- Lapse Rate Calculator
- Calculates atmospheric temperature lapse rates at constant altitudes
- Accounts for temporal evolution of valley atmosphere
- Both ASL (above sea level) and AGL (above ground level) calculations
- Pre-evaluation corrections for sensor height discrepancies
- Physically Consistent Grid Point (PCGP) Selector
- Selects grid points based on terrain and land-use parameter matching
- Evaluates: slope angle, slope aspect, roughness length (z0), and albedo
- Multiple selection strategies (NGP, topography, land-use, combined)
- Ensemble averaging capabilities
Why This Matters
Traditional model evaluation uses the nearest grid point (NGP) to represent station locations. However, in complex terrain, the NGP may not represent the actual topographic and land-cover characteristics at the measurement site.
Key Finding from Simonet et al. (2025): The choice of grid point for model evaluation can have an impact on model performance metrics similar to changing the model resolution. This toolkit provides a systematic, physically-based method to select the most representative grid point.
Example Application
The toolkit includes example datasets from the Inn Valley study:
- 17 meteorological stations along the valley
- 4 WRF nested domains: 9 km, 3 km, 1 km, and 0.33 km resolution
- 68 ensemble files total (17 stations × 4 domains)
- 9 grid points per ensemble (3×3 spatial array)
Critical Requirement
To apply the PCGP method, you need reference values for physical parameters at your measurement sites:
- Slope angle (degrees)
- Slope aspect (degrees from north)
- Roughness length z0 (m)
- Albedo (0-1)
When direct observations are unavailable, use standard expected values based on:
- Literature for similar terrain/land cover types
- WRF land-use parameter tables (e.g., MODIS, USGS categories,...)
- Field surveys or expert knowledge
Use Cases
- Model evaluation in mountainous regions
- Valley wind system studies
- Temperature inversion analysis
- Multi-scale atmospheric model assessment
- Boundary layer research in complex terrain
- Urban climate modeling in heterogeneous areas
Target Audience
- Atmospheric scientists working with WRF in complex terrain
- Model evaluation researchers
- Mountain meteorology specialists
- Air quality modelers in mountainous regions
- Wind energy researchers in complex topography
Software Requirements
- Python 3.7+
- xarray, salem, numpy, netCDF4, matplotlib
- Custom package: gaspypack_git (meteorological utilities)
Citation
If you use this toolkit, please cite both:
- This software package (Zenodo DOI)
- The methodology paper: Simonet et al. (2025), https://doi.org/10.1002/qj.70063
Files
README.md
Files
(356.0 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:66b135b866a8bd3b998faf3269648fc7
|
4.7 MB | Download |
|
md5:ca4a057e4a66884ba6e0adc2c03e4096
|
5.4 MB | Download |
|
md5:aa29d49aca053f4c9fbb652f7a08a80a
|
4.9 MB | Download |
|
md5:6713ba60571a9bade38a81abb3a22322
|
4.8 MB | Download |
|
md5:9ca02ec7f382a72776bbd5731cfa28e7
|
4.8 MB | Download |
|
md5:7d27a7f5d75d2b77565fdbd891d1e69e
|
5.6 MB | Download |
|
md5:d414cbdac0374d5b6a191b89a230737a
|
5.0 MB | Download |
|
md5:05c468864c0f94880d93df5e09957f63
|
4.9 MB | Download |
|
md5:660314524a4ad8b8b6953e8badad8071
|
7.1 kB | Download |
|
md5:ca184985ba3a6fbc505fed82d7c16dcb
|
22.1 kB | Download |
|
md5:f7ef3d3c7db4de13e11ca9d8d51efb84
|
4.8 MB | Download |
|
md5:826a5cbe775c9a2a0dc9f17ba4224374
|
5.5 MB | Download |
|
md5:e0f25ab236c8a091cf7e34477e201c57
|
5.0 MB | Download |
|
md5:b98b3c3e7477d1a6404c04d38419b5e7
|
4.9 MB | Download |
|
md5:86c0efef35caeaf29e72ea4be3071020
|
4.7 MB | Download |
|
md5:95e6b001d5806215b88906ba0c533627
|
5.5 MB | Download |
|
md5:731062b7c505c280d23bd8bd2a93427b
|
5.0 MB | Download |
|
md5:6ff6243334d8b1dadde4160b3e5cd69b
|
4.8 MB | Download |
|
md5:4ef477f96dd7ff72b8835384cb6873d5
|
4.7 MB | Download |
|
md5:33fc40a03604e2c95e0520d7c6a7145d
|
5.5 MB | Download |
|
md5:2707c949e68307502ffa71197938bbb2
|
5.0 MB | Download |
|
md5:a857d8f9d339611529f35f2b120ca99e
|
4.9 MB | Download |
|
md5:238c0b0b8f899f5c7496c5d3f73b6e38
|
4.6 MB | Download |
|
md5:2dbf4ebbd1e7aa9d9434a3c0438dd796
|
5.4 MB | Download |
|
md5:b7f112f892ede42479a6fcc9adb50059
|
4.9 MB | Download |
|
md5:b54cbedb70b6d434b8afa027dfd9ac40
|
4.9 MB | Download |
|
md5:85311c15f03e4cd3202abd315455dede
|
28.6 kB | Download |
|
md5:56c7060dda19f01ccfa5c1784fda5d6b
|
4.8 MB | Download |
|
md5:fb123e6ec5921a30724df24770a5bf23
|
5.5 MB | Download |
|
md5:f4b2fe6a5e464e437428d17cb0d838a7
|
5.0 MB | Download |
|
md5:c3f3f6f284fe0c932e2f942b2f214538
|
4.9 MB | Download |
|
md5:134c4c3892b5ae3d0d4a772c1c31d0fa
|
5.3 MB | Download |
|
md5:4ea707c870236b3ea15acf89f910c435
|
6.0 MB | Download |
|
md5:c9a8f445d569c59dffded5e524508d66
|
5.6 MB | Download |
|
md5:e1397b018463e1bcfe91e9323cbb9312
|
5.5 MB | Download |
|
md5:6210d7f0c4f506afc069423d400b601f
|
4.8 MB | Download |
|
md5:dcc5557acb6ccb5ced0554cae56dc17f
|
5.5 MB | Download |
|
md5:e0293b653e394914f1e1f7be005d3ae0
|
5.0 MB | Download |
|
md5:42aeff5c7c142bb6e816688189064ace
|
4.9 MB | Download |
|
md5:11d9873c543661bf2f71192b0a726783
|
5.3 MB | Download |
|
md5:c41a5098f80be879d97371f0eda898c9
|
6.0 MB | Download |
|
md5:d9c1f18f0e2e78ef6a09854a355f4b49
|
5.5 MB | Download |
|
md5:33290b605d8e8b43ca955ead4bd5777f
|
5.4 MB | Download |
|
md5:eec24902c6a49b24cdb923a137bf117d
|
5.3 MB | Download |
|
md5:a141c0b8415f13c647e47147a0cce248
|
6.0 MB | Download |
|
md5:09ed44634460cefa95e6057a49eca340
|
5.5 MB | Download |
|
md5:e3e984191c6e0df451fd4580554293e4
|
5.4 MB | Download |
|
md5:6c3ce65e98015ac3dab64ee90b81e712
|
9.8 kB | Preview Download |
|
md5:3b1b0d7cc8cd60f680925a9d310e2d20
|
5.3 MB | Download |
|
md5:66eaef11b853af7c7a7d39d7692203dc
|
6.0 MB | Download |
|
md5:442d38c09c0599ad3d1f8d686a6a95ae
|
5.5 MB | Download |
|
md5:729a873c6b813ce0698d0ddd578b6c39
|
5.3 MB | Download |
|
md5:956872b0c7de358382e693f764a43157
|
5.3 MB | Download |
|
md5:4b32a5731e0f16a8e4bd44d956786ee9
|
6.0 MB | Download |
|
md5:4ae5dddfbe6d4b7f21707e1acd39fcdd
|
5.5 MB | Download |
|
md5:eb44f0642b1cdf1d37c9490e049cd3e9
|
5.4 MB | Download |
|
md5:30c6417fa6ee708102ea013ad7012bda
|
5.3 MB | Download |
|
md5:394e6ea82abbba947142227660fc351c
|
6.0 MB | Download |
|
md5:94b36c2565f8ff261efe39b8d17edb73
|
5.5 MB | Download |
|
md5:f80f58c96cc008d3aeb2655ace74e657
|
5.4 MB | Download |
|
md5:05190d397aace385d55e67bd93dc756a
|
4.8 MB | Download |
|
md5:48c6b3370a79245a77c19bbbb949a634
|
5.5 MB | Download |
|
md5:11fe3ef7ea75f46f429ea6c9d047bcd6
|
5.0 MB | Download |
|
md5:f3c3d2e8dd2b50ca757048d75e8ce92f
|
4.9 MB | Download |
|
md5:82ba1ac438f382540c9fddb347889162
|
4.7 MB | Download |
|
md5:3df704064be24dd9b9a2002ee5234fa1
|
5.5 MB | Download |
|
md5:068c22c156109742a9ffe738d34d5e05
|
5.0 MB | Download |
|
md5:5d1d5e4e157484f9431b6a248f7c3f8e
|
4.8 MB | Download |
|
md5:d8be3342841f7a782fb0c7cd22783cad
|
5.3 MB | Download |
|
md5:45f778d28d89864c25c5a4f7b49302ea
|
6.0 MB | Download |
|
md5:d4aa8e31dc5b4c30c489ee95bdfd2dc7
|
5.5 MB | Download |
|
md5:554d67f5a916c8880f1113956cf1ea49
|
5.4 MB | Download |
Additional details
Software
- Programming language
- Python